Hello. I am wondering if it is possible to add regular peds to the clothing menu as opposed to mp peds? I can’t seem to find anything on it. TIA.
if DoesEntityExist(GetPlayerPed(-1)) then
local model = GetHashKey(a_m_m_bevhills_02)
RequestModel(model)
while not HasModelLoaded(model) do
Citizen.Wait(0)
end
SetPlayerModel(PlayerId(), model)
SetModelAsNoLongerNeeded(model)
end
Some time ago I am presenting a problem when it comes to see the identification of the players, as well as searching …
It’s that sometimes it does not work and sometimes it does not, it’s like that … it works when you want
I’m having a problem that i can’t open the police menu (F6) and see the police blips right after entering my server, i need to restart the script or /setjob again (while it’s already set and showing up on job title) to the menu/blips work. It’s updated (as my esx/another scripts are too). Any clues? Thank you!
(sorry for my bad english, i’m brazilian)
Hey anyone got problem with policejob working with k9 it says i dont have permission to use it can someone help me
Hello, I have exactly the same problem. did you solve the problem?
I havent solve it yet hope someone could help
K9 is outdated you could fix it if you know some basic lua just look over the code
How do I get a Weapon license, you have to get the police
Did you ever get an answer for this @Trafal_Geek? I’m having the same issue, even after removing and reinstating it countless times.
Is there anyway to add a timeclock to this so police can clock in and out and when clocked in they can see each others blips on the map.
Thanks for this. Where exactly do I add that however?
no I have not been able to solve the problem
client/main.lua
==> Replace OpenCloakroomMenu()
Function with the one below.
function OpenCloakroomMenu()
local playerPed = GetPlayerPed(-1)
local elements = {
{ label = _U('citizen_wear'), value = 'citizen_wear' },
{ label = _U('bullet_wear'), value = 'bullet_wear' },
{ label = _U('gilet_wear'), value = 'gilet_wear' }
}
if PlayerData.job.grade_name == 'recruit' then
table.insert(elements, {label = _U('police_wear'), value = 'cadet_wear'})
end
if PlayerData.job.grade_name == 'officer' then
table.insert(elements, {label = _U('police_wear'), value = 'police_wear'})
end
if PlayerData.job.grade_name == 'sergeant' then
table.insert(elements, {label = _U('police_wear'), value = 'sergeant_wear'})
end
if PlayerData.job.grade_name == 'lieutenant' then
table.insert(elements, {label = _U('police_wear'), value = 'lieutenant_wear'})
end
if PlayerData.job.grade_name == 'boss' then
table.insert(elements, {label = _U('police_wear'), value = 'commandant_wear'})
end
if PlayerData.job.grade_name == 'your_rank_here' then
table.insert(elements, {label = 'Example Custom Ped', value = 'example_ped'})
end
if Config.EnableNonFreemodePeds then
table.insert(elements, {label = _U('sheriff_wear'), value = 'sheriff_wear_freemode'})
table.insert(elements, {label = _U('lieutenant_wear'), value = 'lieutenant_wear_freemode'})
table.insert(elements, {label = _U('commandant_wear'), value = 'commandant_wear_freemode'})
end
ESX.UI.Menu.CloseAll()
ESX.UI.Menu.Open(
'default', GetCurrentResourceName(), 'cloakroom',
{
title = _U('cloakroom'),
align = 'top-left',
elements = elements,
},
function(data, menu)
cleanPlayer(playerPed)
if data.current.value == 'citizen_wear' then
ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin)
TriggerEvent('skinchanger:loadSkin', skin)
end)
end
if
data.current.value == 'cadet_wear' or
data.current.value == 'police_wear' or
data.current.value == 'sergeant_wear' or
data.current.value == 'lieutenant_wear' or
data.current.value == 'commandant_wear' or
data.current.value == 'bullet_wear' or
data.current.value == 'gilet_wear'
then
setUniform(data.current.value, playerPed)
end
if data.current.value == 'example_ped' then
if DoesEntityExist(GetPlayerPed(-1)) then
local model = GetHashKey(a_m_m_bevhills_02)
RequestModel(model)
while not HasModelLoaded(model) do
Citizen.Wait(0)
end
SetPlayerModel(PlayerId(), model)
SetModelAsNoLongerNeeded(model)
end
end
CurrentAction = 'menu_cloakroom'
CurrentActionMsg = _U('open_cloackroom')
CurrentActionData = {}
end,
function(data, menu)
menu.close()
CurrentAction = 'menu_cloakroom'
CurrentActionMsg = _U('open_cloackroom')
CurrentActionData = {}
end
)
end
Did this on my mobile, but I’m pretty sure that will work. If you have any trouble with it let me know.
is there anyway to set so the copcars is owned by the cops? so they can lock it?
Press M it’ll bring up a menu that you can lock your car!
thanks bro
/20characters
cant open my menu when am in a car
How does setting society owned vehicles to true for jobs work? And how do I stop non-players driving around in police cars and ambulances?