NTScripts Docs
  • ⛽NT_FUEL
  • ☀️NT_WEATHER
  • 💖NT_HUD
  • 📗NT_MENU
  • 📲NT_NOTIFICATION
  • 🚗NT_RENTAL
  • 🏦NT_CASH
  • 🗣️NT_DIALOGSYSTEM
  • 🕺🏻NT_ESSENTIALANIMATIONS
Powered by GitBook
On this page

🚗NT_RENTAL

Previous📲NT_NOTIFICATIONNext🏦NT_CASH

Last updated 10 months ago

ox_target required.

NT_RENTAL/nui/js/script.js

To add new vehicles to the list or modify them, edit the lines you see below or create a new one following this structure, including the corresponding ID.

NT_RENTAL/config.lua

ErrorMessage: Customize the error message that will appear to the player when they do not have enough money.

Peds:

x: Set the x coordinate on the map for the ped.

y: Set the y coordinate on the map for the ped.

z: Set the z coordinate on the map for the ped.

heading: Set the direction the ped is facing.

model: Set the npc model. You can find a variety of NPC models in the official FiveM documentation.

dict: Set the animation dictionary.

animation: Set the ped animation available in that dictionary.

label: Label shown when opening the target.

icon: Icon shown when opening the target.

event: Event triggered when selecting the option in the target.

spawnCarX: Set the x coordinate on the map for the vehicle.

spawnCarY: Set the y coordinate on the map for the vehicle.

spawnCarZ: Set the z coordinate on the map for the vehicle.

headingCar: Set the direction the vehicle is facing.

NT_RENTAL/framework.lua

FRAMEWORK: Set the framework corresponding to your server's base, for example, ESX if it's ESX, or QBCORE if it's QBCORE. For suggestions on possible implementations for new frameworks, open a ticket through Discord.