[Release-Archived] Cops FiveM

hello I would like to know if know possible to create a place or to change garment to apply that this?

there’s no hat in my code, i assume you got the new version of Cops FiveM so you can comment this line

SetPedPropIndex(GetPlayerPed(-1), 0, 46, 0, 2)

When i type /cuff or something, says please take your service. What i need to do to take service. THX !

Please read

Commands
Admin commands :

/copadd (ID) : add a cop to bdd
/coprem (ID) : remove a cop

1 Like

UltraGaming : Comment this line : SetPedPropIndex(GetPlayerPed(-1), 0, 46, 0, 2)

Zesha : You have to be a cop and you have to take your service in police station (changing-room)

go in the police station and take your service in the marker

1 Like

I did it but i think i forgot to load skin_customization.

there is no marker in station

So you’re not a cop : /copadd ID

go in the cloakroom .

Possible to convert it to es_roleplay ? instead of es_freeroam

Sorry, I don’t use es_roleplay ^^’
I can try but it’s not a priority.

I find myself with the same problem. it possible to have an archive with the vk files and other edit to the places of you help question spam, or wait for the next version?


Ok sorry i will wait thank you :blush:

I’m already doing it :smiley:

it work very well Kyominiim its possible i want add second point spawn vehicule police (helico on the roff) with youre code:

if(isInService) then
if(isNearStationGarage()) then
if(existingVeh ~= nil) then
drawTxt(“Press ~g~E~s~ to store your vehicle.”,0,1,0.5,0.8,0.6,255,255,255,255)
else
drawTxt(“Press ~g~E~s~ to drive your vehicle out.”,0,1,0.5,0.8,0.6,255,255,255,255)
end

				if IsControlJustPressed(1, 38)  then
					if(existingVeh ~= nil) then
						SetEntityAsMissionEntity(existingVeh, true, true)
						Citizen.InvokeNative(0xEA386986E786A54F, Citizen.PointerValueIntInitialized(existingVeh))
						existingVeh = nil
					else
						local car = GetHashKey("police3")
						local ply = GetPlayerPed(-1)
						local plyCoords = GetEntityCoords(ply, 0)
						
						RequestModel(car)
						while not HasModelLoaded(car) do
								Citizen.Wait(0)
						end
						
						existingVeh = CreateVehicle(car, plyCoords["x"], plyCoords["y"], plyCoords["z"], 90.0, true, false)
						local id = NetworkGetNetworkIdFromEntity(existingVeh)
						SetNetworkIdCanMigrate(id, true)
						TaskWarpPedIntoVehicle(ply, existingVeh, -1)

possible you think

1 Like

I’ve just test your code that work for my DB the job ID has been change but not ingame i need to quit and reconnect to the server to apply the changes in game. any idea? :confused:

speedy : yes, no problem for next release :smiley:

ig0ne : i’ll check that

##Complete Package
You want this ? There it is :smiley:

Complete_Package_Police_FiveM_v1.0.1.zip (100.1 KB)

3 Likes

I added myself as cop then i typed /cuff and said please take your service first.
Whatever i went to Pol. Station (Los Santos) , and i didn’t see any marker in the rooms of station.

Go to changeroom to have the marker