[Help] Job problem and Blip problem


#1

Okay! So I have made myself a script. Or rather rescripted a job.
And everytime I rejoin the server I need to reset my job to make it work. Any ideas?

Okay so that was the fist problem.
The second problem is that I cant get my blip to show up.

client/main.lua:

-- Create blips
Citizen.CreateThread(function()
	if(PlayerData.job ~= nil and PlayerData.job.name == 'militar') then
		local blip = AddBlipForCoord(Config.Zones.CloakRoom.Pos.x, Config.Zones.CloakRoom.Pos.y, Config.Zones.CloakRoom.Pos.z)
  
  		SetBlipSprite (blip, 158)
  		SetBlipDisplay(blip, 4)
  		SetBlipScale  (blip, 1.2)
  		SetBlipColour (blip, 4)
  		SetBlipAsShortRange(blip, true)
	
		BeginTextCommandSetBlipName("STRING")
  		AddTextComponentString("Military")
  		EndTextCommandSetBlipName(blip)
	end
end)

config.lua:


	CloakRoom = {
		Pos   = {x = 115.646667480469, y = -763.033325195313, z = 241.152053833008},
		Size  = {x = 1.5, y = 1.5, z = 1.0},
		Color = {r = 204, g = 204, b = 0},
		Type  = 1
	},

What am I doing wrong?


#2

Same problem :confused: If I can solve it, I’ll help you.