22.07.2020, 20:44
What would be the most efficient way of removing dynamic objects attached to a vehicle, for ANY vehicle?
I've got more than 10,000 objects easily in my server, so a loop is not ideal...
The only "true" way to consider all objects is by hooking CreateObject, storing the value in a variable and then looping through it, using Streamer_GetIntData to match the vehicle ID and then remove it however considering the amount of objects I have this would end up being very laggy and bad for server performance...
Any alternatives?
I've got more than 10,000 objects easily in my server, so a loop is not ideal...
The only "true" way to consider all objects is by hooking CreateObject, storing the value in a variable and then looping through it, using Streamer_GetIntData to match the vehicle ID and then remove it however considering the amount of objects I have this would end up being very laggy and bad for server performance...
Any alternatives?