DarkRP - A Script That Knows if your jailed?

I was wondering if any of you know a little if statement basically like
if !injail then
So basically this command I have I want it to work only when not in jail.
DarkRP!
Please help, If you know where I can find please tell.

[lua]ply:isArrested()[/lua]
Next time use the darkrp help thread or problems that don’t need their own thread…

Your welcome

http://wiki.darkrp.com/index.php/Functions/player/shared/isarrested

Use this to check if the player is arrested before executing the command.

Edit:

ninja’d

Dude thanks, You’ve helped ALOT!

[editline]2nd March 2014[/editline]

Lol he beat you to it :smiley: Thanks anyway

No problem, mark this as solved now :slight_smile:

Lol i’m new to facepunch. How do I do it?
This is awkward:D