Jump to content

MTA:DayZ OnDuty script


Recommended Posts

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)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...