Theft Configuration
Do you want the theft section of your interaction tablet to work correctly? Follow these steps.
For the theft history to work correctly, we will have to follow these steps:
Remember, this is so that organizations can keep track of the thefts they commit and whether they are failed or active. To do this, we will have to do the following: first, you will have to register the theft when it starts. In the case of a theft from Badulaque, for example, it is done as follows:
Parameters Explained
roboId:
Theft database IDroboNombre:
Label of the name of the established robbery
TriggerServerEvent("jc_robos:iniciarRobo", roboId, roboNombre, orgLabel)
-- Example
RegisterCommand("starrobo", function()
local roboId = 8
local roboNombre = "badu_central"
exports['jc_core']:GetOrgLabel(function(orgLabel)
if not orgLabel then
print("No perteneces a ninguna organización.")
return
end
TriggerServerEvent("jc_robos:iniciarRobo", roboId, roboNombre, orgLabel)
print("Has iniciado el robo de prueba: "..roboNombre.." (Org: "..orgLabel..")")
end)
end, false)
You will have to put in the client.lua of your robbery when it starts, the robbery ID + the label of the name that has been added to it, with that when you start it will be registered, also when the players are added to jail or community services you will have to add this other trigger:
TriggerServerEvent("jc_robos:onPlayerJailed")
-- Example
RegisterCommand("failrobo", function()
TriggerServerEvent("jc_robos:onPlayerJailed")
print("Has sido pillado en el robo")
end, false)
If they are not caught for X time, the robbery will be considered completed! This phase is a bit in testing mode, in case it presents problems for those players who have encrypted police systems, we will change the way of doing it.
Last updated