hello, I converted a script to ESX and I have this error that is how to fix it. I was told that the problem came from the citizenid but I don’t know what to replace it with

1 Like

Hey :slightly_smiling_face:
This error simply means that in your database you have a Table named ‘bbvehicles’ and in that Table there should be a column named ‘citizendid’, but apparentlly there is not. Because when your script tries to make a query* the error above is prompt.

*the SQL query in question : "SELECT * FROM ‘bbvehicles’ WHERE ‘citizenid’ = ‘fb…0e3’ "

I assume you converted the script from QBCore to ESX, regardless of the framework with which it was programmed before the structures of the Tables in the database are different from framework to framework.
For example ESX uses the license and call it ‘Identifier’ - QB uses the license called ‘license’ and as a field name ‘citizenid’.

QB
image
ESX
image

1 Like

thank you very much

now I have this error


Line 26, the function you are using need 2 args (the vehicle and the properties you want to modify)

image


I still have the same error, I must have done something wrong

Just looking at your screenshot (20 lines of code) I cannot tell you.
You added the second arg ‘props’, as I can see. But did you make sure the content of ‘props’ is what the function need it to be ?

Check the ESX doc to make sure you didn’t make a mistake when you assign the ‘props’ value :

I don’t really know I’m not a very advanced developer