[HELP] Remove trailers in industrial areas


#1

Herro! So I’ve been trying to figure out how to remove them pesky trailers in industrial areas. I’ve tried couple of native functions.

I’m trying to remove this
Object name: prop_truktrailer_01a
Object id: 1152297372

So what I’ve tried:
GetEntityPlayerIsFreeAimingAt is returning nothing for me
IsIplActive returns false
GetClosestObjectOfType returns some number but it’s not a hash and using it for DeleteObject or DeleteEntity doesn’t work

These are just couple and I’ve been at it all night. Not sure what to do!