[ESX][FREE] Vehicle Gain

Vehicle Gain

The script serves for the mini-event of hiding the vehicle, the admin has the possibility to create a vehicle anywhere in a random location that you set in the config, and when the player finds the vehicle it is automatically saved in owned_vehicle, one of the many and interesting scripts from us!

Dependencies for this resource are:

ESX
ox_lib

Showcase
Download

Config:

image

Code is accessible Yes
Subscription-based No
Requirements Yes
Support Yes
2 Likes

nice work :heart:

Tried to add the identifier but it says I don’t have permission to create game every time

nice work :sunglasses::sunglasses::sunglasses::blush::blush::blush::blush:

Hello, You have a link on GitHub to join our community to open a ticket

What identifier did you use? If you have a multicharacter system you would be required to use Char#:license as this system checks for xPlayer.identifier and as an example cd_multicharacter sets your xPlayer.identifier value to Char1:license/Char2:license.

@JiminyKroket fivem, go txadmin, players, your name/ IDs/ license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

:call_me_hand:t2:

With no multicharacter system, latest ESX uses just the license value as the identifier not license: as well, make sure to remove that from your configuration line.

Im having a weird issue with it where it will only allow me to claim the vehicle other people dont see the prompt. And does it reset after restarts?

There is no code in place to tell every client what vehicle was put down and to start the thread for displaying the prompts, the server only sends the notification event and only the creating client knows what vehicle to even display the prompt for.