prisonIn
TriggerClientEvent('RiP-Prison:jail', source, time, cell, reason)
This function puts a player into jail
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
source | Integer | No | Player's source |
time | Integer | Yes | Player's jail time |
cell | Integer/String | Yes | Cell id or 'yard' |
reason | String | Yes | Reason for jail time |
Example
local xPlayer = ESX.GetPlayerFromSource(source)
TriggerClientEvent('RiP-Prison:jail', xPlayer.source, 9, 'yard', "Why not?")