🔧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:

server.cfg
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:

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)

Last updated