for i = 1, #config.concessionarias do
concessionaria = createMarker (config.concessionarias.x, config.concessionarias.y, config.concessionarias.z - 1, "cylinder", 1.2, config.concessionarias.cor[1], config.concessionarias.cor[2], config.concessionarias.cor[3], config.concessionarias.cor[4])
createBlipAttachedTo (concessionaria, config.concessionarias.blip)
addEventHandler ("onMarkerHit", concessionaria, function (element)
if getElementType (element) == "player" then
if isGuestAccount (getPlayerAccount (element)) then return end
if not isPedInVehicle (element) then
triggerClientEvent (element, "MST.onPlayerCheckVehicles", element, {config.concessionarias.x, config.concessionarias.y, config.concessionarias.z})
end
end
end)
end
function onPlayerConcessionaria (player)
if isElementWithinMarker(player, iniMarker) then
if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Conce")) then
if veh[player] and isElement( veh[player] ) then destroyElement(veh[player])
veh[player] = nil
end
Queria saber como coloco acl no marker de concecionaria, para que só o dono na conce consiga acessar o marker