[Release][ESX] Give or delete owned vehicle to database (plate can custom or random generate)

maybe someone got a fix for this

when i am giveing someone a car then is the same car spawning on my location but with a random plate

like i would write the command “/car”

hi not working i dont have permision but i have setgroup. no error
image

image

image

It says it’s spawned in my garge but it ain’t there I use esx

Anyway to create logs or webhook for this

change
Config.AuthorizedRanks = {
‘user’,
to
Config.AuthorizedRanks = {
‘admin’,

newest ESX? if so its in the impound, click impound then retrieve

Nice idea. I love that. Anyone solution ? :slight_smile:

Hey man, can you tell me wich command i have to use on “Azurium CMS”? i don’t know what i’ve to do…
example : givecar {player] m3gtr
doesn’t working
Please help me

try using an underline (_) as prefix for the console commands

1 Like

I have the latest legacy version and always get the following message
@esx_givevehicle/server/main.lua:164: attempt to index a nil value (global ‘ESX’)

ESX = nil
it’s at the top of serve.main, does anyone know?

I use a garage script that unparked cars go to Legion. So it depends on which garage script you’re using.


how do i go about fixing this?

Hello. I got a problem with this script. This script looks very simple, but everytime i try to use the command it show me “You dont have permission to do this command”. Its on my own Testserver, so i wonder why i should not have permission. So i wanted to make sure and gave me the superadmin permission again manuel. I restarted script and server. I can use all commands, but i still dont have the permission to give me a car. It would be super nice if someone could help me, I’ve been trying for hours and can’t get any further.

Update: I checked Database (im superadmin), i deleted and reinstalled the script, and i restarted the Server. Still not the permission to do this command.

Anyone else getting 'Unknown Model" error?

does anyone know how to combine with [free] sqz_carkeys ?
when i give players a vehicle they dont have the keys for the car

script:esx_givevehic] SCRIPT ERROR: @esx_givevehicle/server/main.lua:145: attempt to index a nil value (global ‘MySQL’)

we are not working whit identifier whit steam id .

MySQL.Sync.execute(“INSERT INTO owned_vehicles (owner, plate, vehicle, stored) VALUES (@owner, @plate, @vehicle, @stored)”,
{
[‘@owner’] = xPlayer.identifier,
[‘@plate’] = vehicleProps.plate,
[‘@vehicle’] = json.encode(vehicleProps),
–[‘@stored’] = 1,
[‘type’] = vehicleType

how can i change that?

AT LINE 73 CHANGE THIS MySQL.Async.execute(‘INSERT INTO owned_vehicles (owner, plate, vehicle, stored, type) VALUES (@owner, @plate, @vehicle, @stored, @type)’,

TO THIS MySQL.Async.execute(‘INSERT INTO owned_vehicles (owner, plate, vehicle) VALUES (@owner, @plate, @vehicle)’,

i have a little problem, the script work correctly. but i can’t storage a car give me a error the car is not yours.

just change that?
what about the other things under it sir

it says i dont have permission. I have admin