it seems i get a error when importing the police.sql, I seem to be missing the illgel table how I add that?
@ Kyomini i COPY from lite i want it in full so i can remove skin_customization cause i went the modal as the cop in full not the mp cop skin
Hi Kyominii, your release is so perfect that I could translate it entirely in French, it’s very successful!
I will have a little suggestion to ask, it would be so good to have ranks in the police system, for example, a captain who can acces to a specific type of car (buffalo of FBI).
Anyway, you make a real good job, and I’m a baguette who can just “remercie” to you
…add isillegal …after isillegal
you need to change the second isillegal by something who exist in item table (ID, libelle, etc…)
For the police table, delete it and the sql file will recreate it.
As he said , the rank will be implemented in the next release . So patience is the key
Hi, the crochet function work with the LockSystem script ?
That doesn’t work for me.
I have try this :
SetVehicleDoorsLocked(car, 1)
idk, I think, crochet just unlock vehicle’s doors
The script use this for unlock :
lockStatus = SetVehicleDoorsLocked(car, 1)
So i try replace in the function in menupolice.lua :
lockStatus = SetVehicleDoorsLocked(car, 1)
and
SetVehicleDoorsLocked(car, 1)
You already have the piece of code
well see when i replace the unifrom bit it breaks the code
I can’t help you without any errors.
Please be more precise
Why do you want to change this line ?
Yes but he doesn’t work with LockSystem so i try replace to this function take in locksystem you have no idea ?
i want it to be a real uniform
this is what i do
@Kyominii
function giveUniforme()
Citizen.CreateThread(function()
local model = GetHashKey("s_m_y_cop_01")
RequestModel(model)
while not HasModelLoaded(model) do
RequestModel(model)
Citizen.Wait(0)
SetPlayerModel(PlayerId(), model)
SetModelAsNoLongerNeeded(model)
RemoveAllPedWeapons(GetPlayerPed(-1), true)
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_NIGHTSTICK"), true, true)
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_PISTOL50"), 150, true, true)
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_STUNGUN"), true, true)
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_PUMPSHOTGUN"), 150, true, true)
end)
i remove the other code there and put this but it dont work cause i wanting full with no skin_customization
@Rowix4 : what kind of vehicle are you trying to unlock ?
function giveUniforme()
Citizen.CreateThread(function()
local model = GetHashKey("s_m_y_cop_01")
RequestModel(model)
while not HasModelLoaded(model) do
RequestModel(model)
Citizen.Wait(0)
end
SetPlayerModel(GetPlayerPed(-1), model)
SetModelAsNoLongerNeeded(model)
RemoveAllPedWeapons(GetPlayerPed(-1), true)
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_NIGHTSTICK"), true, true)
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_PISTOL50"), 150, true, true)
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_STUNGUN"), true, true)
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_PUMPSHOTGUN"), 150, true, true)
end)
end
okay i try that and see if it works
All the vehicle, in LockSystem you can unlock all vehicule if you have key whis this function