Problem with the script vehshop

Hey all, i post a better screen of my problem :

i try to buy a personal vehicle but i can’t see the vehicle, only buy and loose my money…

Can you check the file vehshop.s/lua and see what you have on line 17 ?
That is the line that gives you this error…

Hey, i have : TriggerClientEvent(‘FinishMoneyCheckForVeh’,source) , idk why he don’t work…

Anyone can help me a little ? …

Hi, same problem and no solution for me.

Hi, Me too, if we can get help pls…

Problem from your database, table user, probably in “personalvehicle”. Have you this one ?

1 Like

Can you explain please bro ?

Thank’s for your fast reply !

You need to add personalvehicle varchar 60 and allow to be null.

1 Like

Yep, Looks good to me.

1 Like

I have an error on line 17 h ttps://gyazo.com/a02823fd74472bf576879d831d8dea9e

Did you change your DB settings in config.lua?

yes i change it in config.lua

I have an error when I change name of colomne : https://gyazo.com/8ad497896bcef122ff78e8744b02cfe3

I correct a bug thx you for helping

1 Like

almost forgot, if your server is an RP server you might want to change line 757 in client side vehshop.lua.
change SetEntityInvincible(veh, true) TO SetEntityInvincible(veh, false). Civilians personal vehicles will NOT explode and tires will NOT pop with this set to true. :slight_smile:

2 Likes

ok i change this, you know create a PlayerMenu with phone and Inventory ?

Bonjour je viens car quand j’achète un véhicule via le es_veashop, le voiture spawn bien mais elle n’est pas comme mon véhicule personnel et donc n’est pas sauvegardé dans la base de données. Comment faire pour qu’elle soit mon véhicule personnel et qu’elle soit sauvegardé dans la DB ?


Hello I come because when I buy a vehicle via es_veashop, the car spawn well but it is not like my personal vehicle and therefore is not saved in the database. How can I make it my personal vehicle and be saved in the DB?

I’m also interesting by how save it in the Database, and in general how to add some new things to save in the Database. But I’m also searching for removing money when I buy a vehicle, actually it’s not linked to the Essential Money, I can buy a vehicle but the money doesn’t change. Someone can help me with that ?

Did you add : personalvehicle in Users of your database guys ? :slight_smile: