cant access the garage vehicle shop at police station any ideas how to fix this error code
you havent declared specific vehicles in the config.lua for your rank at lspd you also don’t have any vehicle in the “shared” array so there aren’t any vehicles for all ranks
How would I fix that? If you don’t mind assisting me sorry
can you send the function used in line 280
you need to configure the job vehiocles in the config.lua in your esx_policejob
if #Config.AuthorizedVehicles.Shared > 0 then
for k,vehicle in ipairs(Config.AuthorizedVehicles.Shared) do
table.insert(shopElements, {
label = (’%s - %s’):format(vehicle.label, _U(‘shop_item’, ESX.Math.GroupDigits(vehicle.price))),
name = vehicle.label,
model = vehicle.model,
price = vehicle.price,
type = ‘car’
})
end
end
Thats the function
Where would i find that? sorry i am soo lost with this rn, this is the only issue i cannot work out
did you want me to send the whole config?
check the config for Config.AuthorizedVehicles.Shared
I don’t see any issues in the config file for police vehicles, but the error code is still coming up with the police garage not working, im so lost on how to fix this issue
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
