I want to make a script to lock/unlock door/gate. But I dont know how to select a door in my front. And if I can do this, I think, the next step be turn objetic in static or dynamic.
But, my problem is, how to select a door in my front to apply this changes?
Thanks, anyway guys
@Willief23 already fix it, i was easy after all, just created a bool into my function parameters void spawnPed(PedHash hashi, bool isAddon, string AddonName)
then just create an if statement inside saying that if isAddon==true create a ped with the string AddonName else it would create a ped with PedHash hashi.
Actual code for those who want to learn how to spawn Addon and Non-Addon peds EZ in updated code
@preto89 Markers dont have handles so they dont return anything. They just get drawn every frame you call them. Just put it inside a if statement with bool to turn on and off. You can also use checkpoints that do return a int handle. But they are limited to what you can do with them. Try UI.Notify("you reched the checkpoint" +Game.GameTime.ToString());