• Anti Arrest
    3 replies, posted
Hey, my name is Joseph (CeeTee) I would like some help. If someone could help me develop and anti arrest script for government officials, I would appreciate it! Thanks, Joseph
Anti-arrest?
[QUOTE=JauneFra;48447231]Anti-arrest?[/QUOTE] well, I would like a script that disables the law from being arrested
[code] hook.Add("canArrest", "govt_arrest", function(arrester, arrestee) if arrestee:isCP() then return false end end) [/code] if the job isn't considered civil protection then use this [code] local jobs = { TEAM_BLAH, TEAM_BLAH, TEAM_BLAH, TEAM_BLAH } hook.Add("canArrest", "govt_arrest", function(arrester, arrestee) if arrestee:isCP() then return false end if table.HasValue(jobs, arrestee:Team()) then return false end end) [/code]
Sorry, you need to Log In to post a reply to this thread.