Help in vehicles

I’m doing a RP server, and i want to create a garage, i have a script that “works” but only if the vehicle is saved in sql (Owned_vehicles), the problem is when you buy a car, the script doesn’t add the plate and your ID in the database, how i can do it?
Or if you have a script with all better :smiley: THANKS

Ask in the original resource topic.