Installation

Dependencies

QBCore Framework


How to install

Drag the script in your folder, run the SQL jailed_players

Add the following lines in your "server.cfg" below

add_ace group.admin command.adminjail
add_ace group.admin command.endadminjail

So only Admins can use the following commands:

/adminjail [ID] [Amount] [Reason] /endadminjail [ID]


How to use commands

-- ORIGINAL
Config.Commands = { 
SendJail = "adminjail",
EndJail = "endadminjail", 
}

-- EXAMPLE
Config.Commands = { 
SendJail = "test", 
EndJail = "test2", 
}

server.cfg:
add_ace group.admin command.test 
add_ace group.admin command.test2

Create action location

Name of the locations should be always unique! Like: ["location1"], ["location2"] etc.

For every jail action you can set a unique scenario. With the following link you can see the list off all scenarios. https://wiki.rage.mp/wiki/Scenarios

Info: To see your coordination use /coords in game

Use vector4 coordinates. Example: x = 100.00, y = 150.00, z = 20.00, h = 10.00

-- This is a example

["location1"] = { Scenario = "WORLD_HUMAN_MUSCLE_FREE_WEIGHTS", x = 1642.72, y = 2524.05, z = 44.56, h = 230.89 },

Last updated