Installation
Here we're going to guide you in the installation of origen_police.
First we want you to know that our script only supports the following versions of the two most used frameworks, in older versions it may be usable but we do not provide support since the development focuses on the following versions:
ensure oxmysql
ensure qb-core
...(make sure to start the connectqueue before the script)
ensure origen_admin
Now you have to insert the SQL files into your database:
Setup CFG Permissions
Check that you have all these lines in your cfg, if you don't have any add them.
add_ace group.admin command allow
add_ace group.admin command.quit deny
add_ace resource.qb-core command allow
add_ace qbcore.god command allow
add_principal qbcore.god group.admin
add_principal qbcore.god qbcore.admin
add_principal qbcore.admin qbcore.mod
Now you will need to register your license as the qbcore.god group. To do this, you can use this example replacing your license.
add_principal identifier.license:8f1a3xxxxxxxxxxxxxxxx qbcore.god # Player Name
Tunning modifications
If your tunning script don't appear here you don't have to modify anything inside it.
At the end of the file esx_lscustom/client/main.lua
exports("OpenMenu", function()
lsMenuIsShowed = true
local vehicle = GetVehiclePedIsIn(playerPed, false)
FreezeEntityPosition(vehicle, true)
myCar = ESX.Game.GetVehicleProperties(vehicle)
local netId = NetworkGetNetworkIdFromEntity(vehicle)
TriggerServerEvent('esx_lscustom:startModing', myCar, netId)
ESX.UI.Menu.CloseAll()
GetAction({
value = 'main'
})
-- Prevent Free Tunning Bug
CreateThread(function()
while true do
local Sleep = 1000
if lsMenuIsShowed then
Sleep = 0
DisableControlAction(2, 288, true)
DisableControlAction(2, 289, true)
DisableControlAction(2, 170, true)
DisableControlAction(2, 167, true)
DisableControlAction(2, 168, true)
DisableControlAction(2, 23, true)
DisableControlAction(0, 75, true) -- Disable exit vehicle
DisableControlAction(27, 75, true) -- Disable exit vehicle
end
Wait(Sleep)
end
end)
end)
Status modifications
If your status script don't appear here you don't have to modify anything inside it.
Add this at the end of the file esx_status/server/main.lua
exports("GetStatus", function(id)
return ESX.Players[id] or {}
end)
Last updated