Hello all!
I need help, i made by myself Onduty script for MTA:dayz, and i need some help whit it
When i write /aduty it shows me the arrow, but how can i get the TEXT at that Arrow
arrowTable = {}
addCommandHandler("aduty",
function(player)
local duty = getElementData(player, "duty") or 0
if duty == 0 then
if not isElement(arrowTable[player]) then
arrowTable[player] = createMarker(0, 0, 0, "arrow", 0.75, 255, 0, 0, 175)
end
attachElements(arrowTable[player], player, 0, 0, 2)
else
if isElement(arrowTable[player]) then
destroyElement(arrowTable[player])
arrowTable[player] = nil
end
end
end)
addEventHandler("onPlayerQuit", root,
function()
if isElement(arrowTable[player]) then
destroyElement(arrowTable[player])
arrowTable[player] = nil
end
end)