I’ve recently got into the FiveM community, I come from MTA to begin with so I got pretty good LUA experience. I’m currently looking for a function or a way to assign data or variables to an object, ped, vehicle and so on. For example, let’s say I want to spawn a vehicle in-game but I want the vehicle to be detected as spawned by me, in which I want to assign such data to the element in which could be used by the scripts at any other point.
Is this possible, and if so, how would I go about doing this, I’ve looked around the wiki and the forums but I can’t really find any useful information about it, any help is greatly appriciated.
Thanks, I was kinda assuming that I would have to store it in a table since I was unable to find such a function, but this clears it up a lot more than I expected. Thanks for the help!