Youtube video: https://www.youtube.com/watch?v=GR0CIO6TeAs
Simple ATM robbing
-You need crowbar to rob ATM's
-3 default ATM types are included default
-Police alerts chance
-Stun chance
-Cash or Black money
-Robbed ATM's are saved on server side so players can't rob same ATM again until they are filled again
-Multiple ATM's can be robbed simultaneously around the map
-Multiple configuration options in Config file -> see below
-Easy to change settings via config
-Not obfuscated so you can edit or add features
-Optimized 0.00-0.01 cpu usage when not close to atm with crowbar
Requirements
-ESX
Config
Config={}
Config.Props = {"prop_atm_01", "prop_atm_02", "prop_atm_03"} --PROP LIST
Config.StartButton = 246 --Y
Config.CancelButton = 73 --X
Config.PoliceAlertPercentChance = 100 --0-100%
Config.RobbingTime = 10000 --How long it takes to rob atm in MS (1000MS = 1Second)
Config.StunChange = 50 --0-100%
Config.StunTime = 30000 --MS (30000MS=30s)
Config.BlipColour = 3 --police alert blib colour
Config.HowLongBlipStays = 30 --How long police blips stays in area in seconds
Config.MinutesToGiveATMsNewMoney = 10 --how often atms are filled
Config.MinCops = 1 --how many cops you need to get anything from ATM's
Config.MinutesForCopCountUpdate = 10 --how ofter serverside updates policecount, don't go below 5
Config.MininumAmountReward = 1000 --minium amount to get from atm -- 1000 and 2000 = average amount is 1500
Config.MaximumAmountReward = 2000 --maxium amount to get from atm
Config.GiveBlackMoney = false --= false - cash, = true - blackmoney
Config.AnimationHeadingFix = 50 --default animation wants to put player bit to the right so this corretcs it, you can use 0 if you change emote.
Config.AnimationDict = "missfbi3_toothpull"
Config.AnimationName = "pull_tooth_loop_weak_player"
Config.YourServerStungunDuration = 5 -- stungun duration in seconds, this is gta v's default value
Config.TextRob = "Press ~g~Y ~w~to rob"
Config.TextRobbing = "Robbing. Press ~r~X ~w~to cancel. Remaining:~g~"
Config.TextYouReceivedBlackmoney = "You got blackmoney:"
Config.TextYouReceivedCash = "You got cash:"
Config.TextYouAreStunned = "~r~You got stunned!"
Config.TextPoliceMessage = "Someone is robbing atm!"
Config.PoliceBlipText = "ATM Robbery"
Config.TextAllreadyRobbed = "ATM was empty!"
Config.TextNotEnoughPolice = "There are not enough polices"