Set right framework (esx or qbcore ) Framework = 'ESX' or Framework = 'QB'
Install ox_lib, if you don't have ox_lib download it from this
Here is preview of sh_conflig.lua
Config = {
Framework = 'ESX', -- (QB,ESX)
debug = false, -- set this to false, when you are ready to use resource ( when it's enabled you can use command border to control borders )
ControlRooms = { -- insert as many as you want
[1] = { coords = vector4(1705.7788, 1454.9409, 85.4949, 206.1096) },
},
-- jobs that can control border
Jobs = {'police','sheriff'},
IgnoreJobs = { -- for this jobs wont be charged when they cross border
'police',
'sheriff',
'ambulance'
},
Dispatch = false, -- If you want to enable dispatch notification set it to true
Payment = true, -- enable/disable payment
-- amount of money to pay when going through border with normal speed and when you drive by very fast
NormalSpeed = 100,
FastSpeed = 1000,
Speed = 60, -- speed in KPH or MPH
KPH = true,
-- if you have blacklisted this ped and vehicle model, insert one you are using on your server
policePedModel = 's_m_y_cop_01',
policeVehicle = 'police',
-- TRANSLATION
Translate = {
BorderControl = 'Border Control',
}
}
Dispatch = function()
-- insert here your custom dispatch event or export
end