philkr / gamehook_gtav

GTA V plugin for gamehook
BSD 2-Clause "Simplified" License
42 stars 7 forks source link

Know which InstanceID from object_id is the one #15

Open MrDasix opened 2 years ago

MrDasix commented 2 years ago

Hi! I currently have an Script that spawns vehicles into the GTAV world, and start the capture plugin from GameHook. Is there a way to know relate the car spawned with the object_id you get from the object_id target?

Ik that i can use ((id >> 28) & 0xf) and id & ((1<<28)-1) to get InstanceID and ObjectID but there is no way to relate the vehicle spawned with any of the Id's output