can anybody help me? I have separate jobs, like CHP, Sheriff, FBI and others. How can I allow these other jobs to access Criminal Records?
I am not a professional programmer, but I am trying to become alone, but this one is difficult. I tried to put this code here, could someone help me where I went wrong?
-- Display marker and Enter/Exit events Citizen.CreateThread(function () while true do Wait(0) if PlayerData.job ~= nil and PlayerData.job.name ~= 'unemployed' and PlayerData.job.name == "police" and PlayerData.job.name == "chp" and PlayerData.job.name == "sheriff" then v = Config.Marker if( v.Type ~= -1 and GetDistanceBetweenCoords(GetEntityCoords(GetPlayerPed(-1)), v.Pos.x, v.Pos.y, v.Pos.z, true) < 50 ) then DrawMarker(v.Type, v.Pos.x, v.Pos.y, v.Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, v.Color.r, v.Color.g, v.Color.b, 100, false, true, 2, false, false, false, false) end if( v.Type ~= -1 and GetDistanceBetweenCoords(GetEntityCoords(GetPlayerPed(-1)), v.Pos.x, v.Pos.y, v.Pos.z, true) < v.Size.x ) then inMarker = true hintToDisplay(v.Hint) else inMarker = false end end end end)
These other professions can not access, because the marking does not appear for them, in fact it even appears to the police. Can someone help me?