Bigjhow Posted October 13, 2022 Share Posted October 13, 2022 -- Gostaria de Inserir uma Custom marker nessa parte do '' Markers" createMarker... com exports -- exports["TB_marker"]:createMarker("door", Vector3 {x, y, z-0.3}) @Shady1 @Burak5312 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} Link to comment
Shady1 Posted October 13, 2022 Share Posted October 13, 2022 (edited) Olá @Bigjhow,Eu não entendo exatamente o que você quer dizer aqui,você pode explicar um pouco. Como exportar um Custom Marker para essa função do CreateMarker? Edited October 13, 2022 by Shady1 Link to comment
Bigjhow Posted October 13, 2022 Author Share Posted October 13, 2022 quero exportar export["TB_marker"]:createMarker("door", Vector3 {x, y, z-0.3}) essa export, para que na hora que o marker for criado ele seja personalizado e não o marker padrão do jogo só que não consigo , está dando esse erro no script: ERROR: [RPPOLICIAL]Script_Arsenal/kakaS.lua30 attempt to perform arithmetic on field ? (a nil value) um exemplo do que eu quero fazer em outro script é esse o : function() for i, v in ipairs(config["Markers"].Conce) do marker_conce[i] = exports["vanish_marker"]:createMarker("carshop", Vector3 {v[1], v[2], v[3]-0.9}) addEventHandler("onMarkerHit", marker_conce[i], function(player) triggerClientEvent(player, "JOAO.openConce", player) end) end for i, v in ipairs(config["Markers"].Garagem) do marker_garagem[i] = exports["vanish_marker"]:createMarker("get_car", Vector3 {v[1], v[2], v[3]-0.9}) addEventHandler("onMarkerHit", marker_garagem[i], function(player) triggerClientEvent(player, "JOAO.openGaragem", player) local result = dbPoll(dbQuery(db, 'SELECT * FROM Veiculos WHERE Conta = ?', getAccountName(getPlayerAccount(player))), -1) triggerClientEvent(player, 'JOAO.resultVehiclesGaragemC', player, result) end) end end) Link to comment
SableLightning78 Posted October 13, 2022 Share Posted October 13, 2022 Como esta o meta do seu resource? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now