[Release-Archived] Cops FiveM

…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 :smiley:

2 Likes

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)

@Kyominii how to change full verison to a player model and not the mp uinform


You already have the piece of code :slight_smile:

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 ? :confused:

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 ?

@Project_Humanity_RP

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

I’m getting these errors ! Pleasehelp me.

And this is my user_vehicle columns :

Add Nom into your vehicle table. You’re missing that

1 Like

I think it’s more about the column “Nom” that you have to add in your ‘users’ table

Fair enough, thanks for all the work and assistance bud.