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

Yup, just have to do it through console

2 Likes

The errors for the SQL still show up for me after changing line 87, is anyone able to help me sort it out?

can you post the errors message?

Oh, sorry for late answer. I can’t add it to the server database at all for some reason…

Wait, let me send the SQL error

I got it to work now.

not working in eden_garage.

Is there a solution to the command doing nothing?

Are you using command on console or in game?
and any errors?

I want to add a space on the license plate, such as A xxxxx

How to do it

None of the command is working in game or even in console. Any solution ? Using es_extended version ‘1.2.0’. No errors shown in console.

working for me, but when the car is given to a player it goes into their impound instead of their garage.

Are you using latest es_extended v1.2 ?


我得到以下错误 可以帮帮我么?
can U help me,plz

How can I set, that the car which I spanw, goes to the garage instead of impounds?

Don’t comment ['@stored'] = 1 on server.lua line 87
and keep line 82 like this:
MySQL.Async.execute('INSERT INTO owned_vehicles (owner, plate, vehicle, stored) VALUES (@owner, @plate, @vehicle, @stored)',

make sure this player id is online in server

go check how it is set on you database to not impounded vehicles and change it on server.lua

Hey,
i wanna delete an car with an random Plate like: VSL 394
But how to write “space”? I didn’t found a way to do it.
Thanks

:arrow_up: Update

2020/8/28

  • Now you can custom a plate with “space”
  • Better command syntax
    image