So if i spawn a add on car for a player, how can i give the ownership to him ?
Depends on your framework and whatever resources you’re using relevant to the matter.
BTW, I notice you ask a lot of basic questions, take it from me - it’s a lot wiser and faster to do research for yourself by looking stuff up before asking for something that’s readily available online.
I use ESX. I have trouble looking for things online. So this is my only option.
ESX has some of the best documentation you’ll ever find for anything FiveM-related, be sure to check it out.
I had trouble finding it
Can you just tell me how can i do it ?
you can use an resource like this : GitHub - minobear/esx_givevehicle: FiveM give vehicle with custom or random plate number into player's garage with command