Give car to new player

Hey,

i would like to automaticliy add a car to every player that is joining the server.

Is it possible?
Would be very thankfull when someone could help me.

It’s most definitely possible but would require you to share what framework you’re using, if any. Otherwise, we have no idea how you’re determining first join and vehicle ownership.

Im using ESX

If you’re using latest esx_legacy, you could look at the way it handles player’s first join in in the createESXPlayer function and add the vehicle insert in that function. When the player joins, if that identifier hasn’t been seen before, it will do all the stuff it needs to in the DB. your vehicle add would fit perfectly there.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.