This script is simple as fuck, only thing it does is allow you to sell your car or simply give it away to the nearest player.
Download: https://github.com/D3uxx/ESX_GiveCarKeys/archive/1.1.zip
Requirements:
How to make it work:
· Move the esx_givecarkeys folder to your resources folder
· Add start esx_givecarkeys to server.cfg
· Restart server
· Hop into a owned car and do /givecarkeys and the nearest player will receive the car.
No big deal, if you want to roleplay a car sale, make sure to roleplay he pays you too.
16 Likes
Levi_C
December 4, 2018, 2:41am
2
looks cool! send some pics
It doesn’t do any animation or anything, just gives the car keys to the nearest player as you write /givecarkeys in the chat.
Also, don’t have no friends to show how it works now.
Just wondering, are you going to update it one day so that you can choose a person near you (like a little menu that pops up showing all the people near you, then you just click the one you want to give it to) This way you won’t accidentally give it to the wrong person if there are many people around you.
which pictures you need? When he will give the keys hahaha you joking
hypr9xa
December 4, 2018, 10:12am
6
Yeah, I think I can try to get that one with ESX’s player choose option.
Just gotta get some free time.
DTPL
December 4, 2018, 11:02am
7
Any help with reworking it for old ID owned_vehicles system?
Nice. I will test it today.
1 Like
I tried it with the command / givecarkeys while a player is standing next to me, but nothing happens. Is it possible that I’m doing anything wrong?
hypr9xa
December 4, 2018, 3:27pm
14
Check console for errors and let me know, both Client and Server.
I get the error when I type the command
B-L-K
December 4, 2018, 6:14pm
16
This script gives keys to the players for ever or just for once? As if he sold his car has anybody?
Nghts
December 4, 2018, 7:37pm
17
Have you not looked at the code… It quite clearly updates the SQL.
lucamas
December 5, 2018, 11:21pm
19
i tryed it but nothing happends and i get no error
???
It works perfectly. You are doing something wrong so check it all again
lucamas
December 6, 2018, 12:17am
21
What makea u think i am doing somthing wrong it could be that it dont match my data base
Ok? so alter it to match your DB. You answered your own problem so i do not see the issue