Presenting a bank truck robbery script. Event is synced so all players can participate when activated, and can activate multiple robberies at once!
The truck will randomly wander until it takes enough damage or is stopped, then the guards will fire back at the criminal. Players can them blow up the truck to get the sweet loot inside.
Somehow the cooldown doesnt work, i can start the truck robbery again and again after completing it. I set cooldown to 360 and also tested 21600. Same.
The cooldown was old code I forgot to remove in the config. It was removed in the latest push. If you are trying to implement some sort of restriction for the heist, I would recommend enabling the Config.RequireStartItem option as that will force the player to have a certain item on them and remove it when used.
@angelicxs Hey man great script! Any way you can add an option for a cooldown period in the config if you so wish so people can’t keep spamming the truck robbery and also would it be possible to add an option of needing an item like C4 to blow the truck doors, making it a little more challenging for crims to get all the items they need to activate the robbery?