DarkRP.Player.CompleteSentence

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:CompleteSentence()
Description:
Arrests the player forcing them to rejoin.
Returns: nil
Part of Library: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Player.CompleteSentence]Player:CompleteSentence[/url][/b]

Examples

DescriptionArrests a player with a certain Steam ID.
Used onNewerServer.png
Code
function ArrestBySteamComplete( steamid )
	for k, v in pairs(player.GetAll()) do
		if v:SteamID() == steamid then
			--Found the player
			v:CompleteSentence()
		end
	end
end
OutputN/A


Additional Notes

  • Same as using arrest(GAMEMODE.Config.jailtimer, true)
  • Is used when people rejoin whilst arrested