DNDdj
21
you welcome let me know if it working for you
DNDdj
23
is it channel 1 you are trying too connect too ??
yes i am trying to connect to channel one as police.
DNDdj
25
okay try too take a screenshot off the code u paste in the esx_policejob cilent.lua
This is my esx_policejob/client/main.lua.
DNDdj
27
okay and you restarted the whole server after pasting in ??
yes i have but still does not work.
DNDdj
29
and do u have a trigger call esx_policejob:forceblip in the server.lua ???
DNDdj
30
for i am not sure but if the trigger fails too load the rest of the function stop working so maybe make the
TriggerServerEvent(“esx_policejob:forceBlip”)
too
–TriggerServerEvent(“esx_policejob:forceBlip”)
i just checked my f8 console and this came up
DNDdj
33
try too put this up in ur client main.lua
where the rest of the local is
local PlayerData, CurrentActionData, handcuffTimer, dragStatus, blipsCops, currentTask, spawnedVehicles = {}, {}, {}, {}, {}, {}, {}
Wolved
34
Nice release! Mind sharing the chat resource you are using? I really like the looks of it!
1 Like
I might have found a solution to the problem the name of the resource was rp-radio-pma-voice and in the files it is called rp-radio so trying the new name now i changed it from rp-radio-pma-voice to rp-radio to see if that fixes it because it came up with another error saying no exports.
Doing that now
EDIT: Added the player data like you suggested still does not work.
DNDdj
38
okay try this
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
while ESX.GetPlayerData().job == nil do
Citizen.Wait(10)
end
isPlayerWhitelisted = refreshPlayerWhitelisted()
PlayerData = ESX.GetPlayerData()
end)
Amazing release anyway thanks for fixing the problems.
1 Like