Hello @Kyominii I installed the script in my server, when I go on the cloakroom marker I click on any choice but nothing happens. I read some comments here and I added this to my server.lua file:
Mmmh, are you sure you have the latest version of police ?
You can also try the pre-1.4 : [Release] Cops FiveM
EDIT 1 : and why are you trying to add require ? require isn’t support by fxserver
EDIT 2 : Ohhhhh I get it, mysql isn’t support by fxserver at all !!! You have to use MySQL-Async if you want to use mysql on FXServer
Hi again. It works now, thanks
I just wanted to share with you my translation in Italian. config.lua (28.0 KB) garage.lua (1.5 KB).
Also, I have a question for you. I noticed that the garage can spawn only 3 models (police3, fbi and policeb) I have some add-on cars for the cops and I edited the code to add one of them.
local buttons = {}
buttons[#buttons+1] = {name = "Pattuglia", func = "Spawnpolice3"}
buttons[#buttons+1] = {name = "Sotto copertura", func = "Spawnfbi"}
buttons[#buttons+1] = {name = "Porsche 718 Cayman S", func = "Spawnpolicepor"}
buttons[#buttons+1] = {name = "Moto", func = "Spawnpoliceb"}
function Spawnpolice3()
SpawnerVeh("police3")
CloseMenu()
end
function Spawnfbi()
SpawnerVeh("fbi")
CloseMenu()
end
function Spawnpolicepor()
SpawnerVeh("pol718")
CloseMenu()
end
function Spawnpoliceb()
SpawnerVeh("policeb")
CloseMenu()
end
It works, but I ask to you if you can set the script to get the police.garage list or we have to manually add every car? Thanks.