So I changed:
if data.current.value == 'citizen_wear' then
onDuty = true
And the markers still haven’t shown up. I’ve played with this module quite a bit and reinstalled from the git repo bot esx_jobs and esx_joblisting but no dice.
I did notice when restarting the module that the console reports this error:
SCRIPT ERROR: @esx_jobs/client/main.lua:340: attempt to perform arithmetic on a vector3 value (local ‘coords’)
The else statement for 340 is where the markers are being painted:
else
if(v.Marker ~= -1 and #(coords - v.Pos) < Config.DrawDistance) then
DrawMarker(v.Marker, 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)
I commented this out and another block failed.
I commented that out and line 442 failed, which was another code block painting markers:
-- Else use radius defined from center
--else
--if #(coords - v.Pos) < v.Size.x then
--isInMarker = true
--currentZone = k
--zone = v
--break
--else
--isInMarker = false
--end
So I commented that out, and the module loads without error, but the markers still don’t show up. I’m wondering if there is something fundamentally wrong with this version of the resource. I’ll see if I can work with the zap hosting group to get it looked at unless anyone has any ideas.
I’m not super versed in writing/interpreting these .lua files as I just started messing with this stuff like two days ago and this is the first major issue I’ve come across that I could not dig into on my own.