qiangqiang101 Posted August 24, 2015 Share Posted August 24, 2015 I spawn objects on map, but they despawn when player gets far, how to stop that?? Link to comment Share on other sites More sharing options...
thewhitehammer99 Posted August 24, 2015 Share Posted August 24, 2015 I spawn objects on map, but they despawn when player gets far, how to stop that?? Setting the object as a mission entity will stop it from despawning Link to comment Share on other sites More sharing options...
Eddlm Posted August 24, 2015 Share Posted August 24, 2015 Using ScriptHookDotNet, I make vehicles persistent and that seems to prevent them from despawning. Car.IsPersistent = true Link to comment Share on other sites More sharing options...
Jitnaught Posted August 26, 2015 Share Posted August 26, 2015 Setting the object as a mission entity will stop it from despawning Using ScriptHookDotNet, I make vehicles persistent and that seems to prevent them from despawning. Car.IsPersistent = true IsPersistent calls SET_ENTITY_AS_MISSION_ENTITY Link to comment Share on other sites More sharing options...