[Release] [ESX] /transfervehicle (Simple script addon to transfer your vehicles)

In that case, if you use my code, and put it at the very bottom of the script, it should work flawlessly

Hey, it’s not working it says that command doesn’t exist.

If you’re using my code it should be /givecar ID PLATE
Else its /transfervehicle ID PLATE

Please notice if the plate is ABC 123 it has to be written exactly so, including whitespaces
/transfervehicle ID ABC 123

Or if you use my code
/givecar ID ABC 123

How would i make it where only the car dealer can use this command. And you dont have to own it to transfer the vehicle

I cant seem to find the server.lua can someone help me with that?

Its Main.lua in server file

download link ?

where to exactly put it ? i dont have server.lua

I already did as u told, i can see the command and i write command like /transfervehicle 2 YUS 120 as i see in mysql plate. But prints This vehicle plate does not exist or the plate was incorrectly written. car is my steam id at sql owner table

Is there a way to put a money transfer in this script?

For example: /transfervehicle [id] [plate] [value]

Thanks in advance :slight_smile:

Why put money? Let the players pay each other as there is already a function for that in esx.

How to write that into an ESX Menu?

when i paste that ingame its telling me that command is not valide

i dont have server.lua in vehicleshop what i need to do

If ive duplicated the vehicleshop for another dealer, should I need this in both scripts or is it only pulling from the soldcars database?

Also, is there an easy way to set this to not use SteamID but to instead use License#?

1 Like

You don’t need to add this in the second script, as I assume everything stays the same, except for a new vehicle buy list for the new dealership.

Nah, everything was changed so it’s an entirely new society. It still uses the Vehicles_sold table though.

JAJAJAJAJAJA :wink: :wink: :joy: :joy: :joy: :no_entry_sign: :no_entry_sign: :bangladesh: :bangladesh:

Does someone got it working on the new es_extended?