No, I have this object that placed around the map, it was created by the server, if a player click E then it
will do something and the object will be deleted.
local obj = GetClosestObjectOfType(coords.x, coords.y, coords.z, 3.0, GetHashKey("prop_rub_binbag_03"), false, false, false)
if DoesEntityExist(obj) then
NetworkRequestControlOfEntity(obj)
SetEntityAsMissionEntity(obj)
DeleteObject(obj)
else
print("cannot find the obj")
end
At the coords you can either put predefined coords for the props on the map or you can take the player’s coords.
Try this and see if it works