[ I AM NO LONGER PROVIDING SUPPORT FOR THIS RESOURCE ]
If you want to re upload an edited version just ask for permission
Description
To start the robbery go to the back of the truck (Model Name: stockade) and press E then complete the hacking phase. If you fail the hacking phase there is a 30 second timer to retry.
If you want to remove the item on use go to RS7xMoneytruck/server.lua Line. 33 and un comment
Okay so what I understand so far is that this makes it so that someone can rob any stockade. ( It doesn’t spawn automatically )
Once hacked the NPC guards spawn inside the vehicle.
I love the way the script is now and intend to have this work with the Brinks job (now players stockades can be robbed)
Only issue I see so far is that once hacked the NPC in the back of the stockade shut the doors once they pop open and poss no threat. The front passenger stays in the vehicle as well.
IF I enter the stockade after hacking the rear doors the NPC will jump out and start attacking me once I exit the vehicle as well.
From what i have noticed if you are holding a gun they usually start attacking when the doors open but sometimes they will just shut the doors and not attack until a gun is pointed or you kick the truck.
I have been looking to see if there is anyway to make the guards attack as soon as the doors open and the hacking phase is done. you could try add TaskCombatPed for each guard in function createped()
i will do some testing and get back to you if i find a way to fix it.
Update : i removed SetVehicleDoorOpen() and added TaskCombatPed() for each guard now they all step out the truck as soon as the hacking phase is over and attack instantly if you find any problems with it feel free to let know you can take a look at the github to see what i changed.