Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/16/19 in Files

  1. Version 1.1.0

    1885 downloads

    This resource lets you display GTA V/Online styled shard messages. Installing: Put scaleform_messages into your server's client_packages directory, then add require('scaleform_messages/index.js'); to index.js. Available events: ShowMidsizedMessage // title, message, time = 5000 ShowMidsizedShardMessage // title, message, bgColor, useDarkerShard, condensed, time = 5000 ShowWeaponPurchasedMessage // title, weaponName, weaponHash, time = 5000 ShowPlaneMessage // title, planeName, planeHash, time = 5000 ShowShardMessage // title, message, titleColor, bgColor, time = 5000 Clientside example (will show different messages when you press numpad0 - numpad6): mp.keys.bind(0x60, false, () => { mp.events.call("ShowMidsizedMessage", "Title", "ShowMidsizedMessage example"); // or: mp.game.ui.messages.showMidsized("Title", "ShowMidsizedMessage example"); }); mp.keys.bind(0x61, false, () => { mp.events.call("ShowMidsizedShardMessage", "Title", "ShowMidsizedShardMessage example", 21, false, false); // or: mp.game.ui.messages.showMidsizedShard("Title", "ShowMidsizedShardMessage example", 21, false, false); }); mp.keys.bind(0x62, false, () => { mp.events.call("ShowMidsizedShardMessage", "Title", "ShowMidsizedShardMessage example 2 (condensed = true)", 21, false, true); // or: mp.game.ui.messages.showMidsizedShard("Title", "ShowMidsizedShardMessage example 2 (condensed = true)", 21, false, true); }); mp.keys.bind(0x63, false, () => { mp.events.call("ShowWeaponPurchasedMessage", "Title", "ShowWeaponPurchasedMessage example", -2084633992); // or: mp.game.ui.messages.showWeaponPurchased("Title", "ShowWeaponPurchasedMessage example", -2084633992); }); mp.keys.bind(0x64, false, () => { mp.events.call("ShowPlaneMessage", "Title", "ShowPlaneMessage example", 788747387); // or: mp.game.ui.messages.showPlane("Title", "ShowPlaneMessage example", 788747387); }); mp.keys.bind(0x65, false, () => { mp.events.call("ShowShardMessage", "Title", "ShowShardMessage example"); // or: mp.game.ui.messages.showShard("Title", "ShowShardMessage example"); }); mp.keys.bind(0x66, false, () => { mp.events.call("ShowShardMessage", "Title", "ShowShardMessage example (colored)", 0, 11); // or: mp.game.ui.messages.showShard("Title", "ShowShardMessage example (colored)", 0, 11); }); Serverside example (will show a wasted message when you die): mp.events.add('playerDeath', (player) => { player.call("ShowShardMessage", ["~r~Wasted", "You died."]); });
    1 point
  2. Version 1.0.0

    1346 downloads

    What is this amazing script? You are also able to control the steering (unable to set straight afterwards due to setSteeringAngle not being implemented yet) so you can move the vehicle to the side of the road. If you are an RP server then this is perfect for you! With some wizard maths, the text and position is at the correct end of each car and is based on distance (This has taken over 6 hours to get right). Configuration I have already built in configuration to set whether you can allow it on locked vehicles, low health vehicles, whether the engine is off and certain vehicle classes. These can all be configured in the config section of the file: this.config = { AllowVehicleClass: [0, 1, 2, 3, 4, 5, 6, 9, 18], // These are the normal vehicles in the game classes - to disable it, set it to false MaxVehicleCubedSize: 25, // This is the vehicle length * width - as an idea an ambulance is 21 LockHandbrakeProtection: false, // If set - you can't push a locked vehicle (Theft prevention or ditching cars) EngineProtection: false, // If set - you can only push if the enginer is turned off VehicleHealthProtection: false, // Must be less than 1000 or false which de-activates checking vehicle health PushEventName: false, // Set this to send an event to your server with the relevant Vehicle and Player attached (ie 'pushing_car') LabelsDisplayed: true, // Show labels near the pushing positions when close enough DebugPositions: false, // View pushing positions as markers so they are more visible AllowVehicleSteering: true, // Allows the player to turn the wheels of the vehicle using A and D keys } In Action To see how it looks working just checkout: https://streamable.com/ab2v5 Questions Lastly if you have any questions feel free to give me a shout on discord (wdoyle2) or respond in the comment section. This is currently not on github but more than happy to post it for any future pull requests.
    1 point
  3. Version 1.0.0

    808 downloads

    Features Nice and clean UI Save maps (as json) Load maps to continue your work. Spawn objects / markers / vehicles Fast search in a list of thousands of objects (200ms maximum) Controls F to show/hide cursor WASD to move, Q/E for up or down Mouse click on an object with the crosshair (not cursor) to select it Arrow keys to move entity PG Up / PG Down move entity up/down CTRL + Arrow keys to rotate, CTRL + PG UP/ PG DOWN to rotate on X vector Hold Alt to rotate/move entities or yourself slowly Hold Shift to rotate/move entities or yourself faster CTRL + C to duplicate entity Delete to destroy F5 to open a list of all entities in the map, clicking an item will select it, some objects can only be selected from this menu. F4 to stop freecam and move your character around For installation, don't forget to require `./map-editor` in your client_packages Maps are saved in the root "maps" folder Credits for @Morbo for his noclip camera. Thanks to Fenrir for support Disclaimer: this map editor is a work of fiction, if there's similarities between this and MTA's map editor then its purely a coincidence.
    1 point
×
×
  • Create New...