Jump to content

Como crio um CustomMarker pra essa função ?


Recommended Posts

--  Gostaria de Inserir uma Custom marker nessa parte do '' marker = createMarker... com exports 
--  exports["TB_marker"]:createMarker("door", Vector3 {x, y, z-0.3})
function createEvent(name, func)
    addEvent(name, true);
    addEventHandler(name, root, func);
end

--\Utils

local spawns = createElement ("KK:onScriptMarkerCorp")
local propriedades = { }

function getPlayerACLGroup (elemento, acl)
    if aclGetGroup (acl) then
        local accName = getAccountName (getPlayerAccount (elemento))
        if isObjectInACLGroup ("user." ..accName, aclGetGroup (acl)) then
            return true
        else
            return false
        end
    else
        return false
    end
end


for i,v in pairs(global['Markers']) do
	marker = createMarker( v.posx, v.posy, v.posz -1, "cylinder", 1.5, 0, 159, 255, 50)
	setElementParent(marker, spawns)
    propriedades[marker] = {acl = global["Markers"][i].acl}
end

 

Edited by Lord Henry
Script removido de dentro de quotes.
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...