DarkRP.Player.isArrested

From Official DarkRP Wiki
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: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Player.isArrested]Player:isArrested[/url][/b]

Examples

DescriptionCharges the player $100 if they are arrested.
Used onNewerServer.png
Code
function ArrestFine(ply)
	if ply:isArrested() then
		ply:AddMoney(-100)
	end
end
OutputN/A