DarkRP.Player.isArrested
Jump to navigation
Jump to search
This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions. Check here for a up-to-date list of functions. |
---|
Function | |
Function name | Player:isArrested() |
Description: | |
Returns true or false depending on if the player is arrested. | |
Returns: | boolean |
Part of Library: | Player |
Realm: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Player.isArrested]Player:isArrested[/url][/b] |
Examples[edit]
Description | Charges the player $100 if they are arrested. |
---|---|
Used on | ![]() |
Code | function ArrestFine(ply)
if ply:isArrested() then
ply:AddMoney(-100)
end
end
|
Output | N/A |