Hi there, does anyone know how you seperate the buy and actions blips. They seam to be connected, for our server we would like to lock away the businesses behind a door in one location but have the actions at the business its self. Any help on the matter would be great.
Citizen.CreateThread(function() – draw thread
while true do
Citizen.Wait(5)
local ppos = GetEntityCoords(GetPlayerPed(-1))
for _,business in pairs(businessData) do
local x,y,z = business.position.buy.x,business.position.buy.y,business.position.buy.z
if GetDistanceBetweenCoords(ppos,x,y,z,false)<Config.draw_distance then
for k,v in ipairs(Config.display) do
DrawText3D(x,y,z+0.5+v.offset,business.display[k],v.scale)
end
if business.owner==nil then
DrawMarker(29, x, y, z-0.7, 0, 0, 0, 0, 0, 0, 1.0001, 1.0001, 1.2001, 0, 255, 0, 200, 0, 0, 0, true)
elseif business.owner==PlayerData.identifier or business.isemployee then
local xx,yy,zz = business.position.actions.x,business.position.actions.y,business.position.actions.z
DrawMarker(1, xx, yy, zz-1.0, 0, 0, 0, 0, 0, 0, 1.0001, 1.0001, 0.25, 0, 0, 255, 100, 0, 0, 0, false)
end
end
end
end
end)
I know it has something to do with this. Just not sure what to do about it.