Skip to main content

prisonIn

TriggerClientEvent('RiP-Prison:jail', source, time, cell, reason)

This function puts a player into jail

Arguments

NameTypeOptionalExplenation
sourceIntegerNoPlayer's source
timeIntegerYesPlayer's jail time
cellInteger/StringYesCell id or 'yard'
reasonStringYesReason for jail time

Example

local xPlayer = ESX.GetPlayerFromSource(source)

TriggerClientEvent('RiP-Prison:jail', xPlayer.source, 9, 'yard', "Why not?")