Everything works fine for me, thanks @Kanersps!
How do I use admin commands? I have tried the way of using “/” and then the command and it doesn’t do anything. Any help would be appreciated. Thanks.
edit:
Also how do you bring up the police menu? thanks.
To Police, pleass add Drag.
i keep getting this error
error creating script enviroment for resource es_rp: can not call nil value.
- cant seem to fix it.
Jobs, harvest, or job changing doesnt work
Is it just me that cannot spawn the police vehicles while on duty? I click the vehicle, menu goes away and nothing happens?
Hello, when ever i try using Police For FiveM, or even es_roleplay 2.0, i try to load in and it doesn’t go past inisillazing server, sorry for bad english its 3 in the morning
Okay so when I go to the job office to set myself as a cop it tells me to go to this one site to apply. How would I change that?
Hi Kanersps, I’ve got some issues.
1st: in game cash and bank is different like in database.
2nd: don’t know how to enable es_pld.
3rd: when i disable mapmanager from server.cfg and spawn i don’t have skin.
4th: How to rob bank?
5th: How to enable stealing cars from npcs?
[quote=“Royalko, post:111, topic:27745”]
5th: How to enable stealing cars from npcs?
[/quote] I would like to know the same
To be able to steal vehicles from NPCs, search and comment/remove the following code in client/interact.lua:
if GetVehiclePedIsTryingToEnter(GetPlayerPed(-1)) ~= 0 then
local veh = GetVehiclePedIsTryingToEnter(GetPlayerPed(-1))
if GetPedInVehicleSeat(veh, -1) ~= 0 then
if not IsPedAPlayer(GetPedInVehicleSeat(veh, -1)) and not IsPedDeadOrDying(GetPedInVehicleSeat(veh, -1)) then
Wait(500)
local coords = GetEntityCoords(GetPlayerPed(-1), true)
SetEntityCoords(GetPlayerPed(-1), coords.x, coords.y, coords.z - 1)
end
end
end
The first person who figured it out on their own. Congratulations.
Fix
No more error on player join related to user not existing. And some other stuff I forgot.
Banking commands have now been removed too.
How to modifiy map marker ? coal mine coal processor etc and how to find job garage etc ?
Hi bouboo,
Job garage you can edit in es_rp/jobs.lua line-163
What dou you mean by modify map marker? Change icon or position of blip?
U can edit this in es_rp/client/interact.lua
How to change the skin of the cop in “m” "next"skin i have modify in jobs.lua in interact.lua but not work
local curPolice = 2
local policeSkins = {
"s_f_y_cop_01",
"s_m_y_cop_01",
"s_m_y_sheriff_01",
"s_f_y_sheriff_01",
"s_m_y_hwaycop_01",
"s_f_y_hwaycop_01"
}
OB_POLICE = {
name = "Police Officer",
plural = "Police Officers",
spawns = {
{ ['x'] = 457.956, ['y'] = -992.723, ['z'] = 30.689, ['heading'] = 10.0 }
},
skins = {
"s_f_y_cop_01",
"s_m_y_cop_01",
"s_m_y_sheriff_01",
"s_f_y_sheriff_01",
"s_m_y_hwaycop_01",
"s_f_y_hwaycop_01"
},
weapons = {
"WEAPON_PISTOL50",
"WEAPON_STUNGUN",
"WEAPON_NIGHTSTICK",
"WEAPON_PUMPSHOTGUN",
"WEAPON_CARBINERIFLE"
},
armour = 100,
health = 200,
permission_level = 11,
salary = 50,
customPermissionLevelCheck = function(source)
TriggerClientEvent('es_rp:notify', source, "Please apply for this job on ~b~https://identityrp.co.uk")
end
}
Ive changed the permissions to lower, i have 11 permission, and i set police to like 5 and i still can not select it in the job office thing in game?!?!? Help
When i load my server i get this error
https://gyazo.com/3d92d7de478f7aedd82fb6772aec036a
How do i get rid of the please aply for this job on idedntity.co.uk? when selecting police or ems on the job job office
Not working anymore getting this error
[ 130214] Error occured.
[ 131290] Error running system event handling function for resource es_rp: citizen:/scripting/lua/scheduler.lua:39: Failed to execute thread: server/jobManager.lua:366: attempt to index a nil value (local ‘user’)
[ 131290] stack traceback:
[ 131290] server/jobManager.lua:366: in upvalue ‘handler’
[ 131290] citizen:/scripting/lua/scheduler.lua:124: in function citizen:/scripting/lua/scheduler.lua:123
[ 131290] stack traceback:
[ 131290] [C]: in function ‘error’
[ 131290] citizen:/scripting/lua/scheduler.lua:39: in field ‘CreateThreadNow’
[ 131290] citizen:/scripting/lua/scheduler.lua:123: in function citizen:/scripting/lua/scheduler.lua:92
[ 148060] Command ‘time’ entered…
[ 158169] Command ‘weather’ entered…
[ 164862] Error running call reference function for resource es_admin: sv_admin.lua:17: attempt to index a nil value (local ‘user’)
[ 164862] stack traceback:
[ 164862] sv_admin.lua:17: in local ‘ref’
[ 164862] citizen:/scripting/lua/scheduler.lua:277: in function citizen:/scripting/lua/scheduler.lua:268
[ 164909] Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:39: Failed to execute thread: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
[ 164909] stack traceback:
[ 164909] [C]: in function ‘error’
[ 164909] citizen:/scripting/lua/MessagePack.lua:830: in method ‘underflow’
[ 164909] citizen:/scripting/lua/MessagePack.lua:465: in field ‘any’
[ 164909] citizen:/scripting/lua/MessagePack.lua:860: in field ‘unpack’
[ 164909] citizen:/scripting/lua/scheduler.lua:338: in field ‘cmd’
[ 164909] server/main.lua:114: in upvalue ‘handler’
[ 164909] citizen:/scripting/lua/scheduler.lua:124: in function citizen:/scripting/lua/scheduler.lua:123
[ 164909] stack traceback:
[ 164909] [C]: in function ‘error’
[ 164909] citizen:/scripting/lua/scheduler.lua:39: in field ‘CreateThreadNow’
[ 164909] citizen:/scripting/lua/scheduler.lua:123: in function citizen:/scripting/lua/scheduler.lua:92