Jump to content

alowner

Members
  • Posts

    32
  • Joined

  • Last visited

Recent Profile Visitors

372 profile views

alowner's Achievements

Rat

Rat (9/54)

1

Reputation

  1. Muito obgd pessoal, deu uma ajuda do caramba
  2. markers = { inicio = {352.43173217773, 2540.5510253906, 15.72790145874}, } function isPlayerInACL(player, acl) if isElement(player) and getElementType(player) == "player" and aclGetGroup(acl or "") and not isGuestAccount(getPlayerAccount(player)) then local account = getPlayerAccount(player) return isObjectInACLGroup( "user.".. getAccountName(account), aclGetGroup(acl) ) end return false end function markerInicial (x,y,z,Painel_droga) for i, v in ipairs (markers) do Painel_droga = createMarker (v[1], v[2],v[3], "cylinder", 255, 0, 157, 50) end end ------------------------ function Open_Painel (source, player) if isPlayerInACL(thePlayer, "trafico") then triggerClientEvent(source, "Abrir_Painel", source) else outputChatBox("Você não faz parte de nenhuma gang!", player) end end addEventHandler("onMarkerHit", Painel_droga, Open_Painel) --- erro aqui, na hora de verificar o arugmento 2. Se alguém conseguir me ajudar, ficarei muito grato. ?
  3. Muito obgd msm, agradeço desde já ♥
  4. Eu tava pensando em algum script pra fazer, cheguei em uma ideia de criar uma ammunation que além de comprar armas, será possível colocar attachments como (mira, skins, etc...) Só que eu não faço a mínima ideia de como fazer esses attachments, se alguém puder me passar uma base doq eu irei precisar para ler e etc... e oq eu preciso aprender pra fazer isso eu ficarei mto grato.
  5. Mto obrigado manooo, ajudou dms ♥
  6. --SERVER markerotas = createMarker(784.80267, -1345.52063, 12.54122, "cylinder", 1.5, 255,58,45, 50) function openpnl () if isElementWithinMarker (source, markerotas) then -- Está dando erro no argumento 1, não sei como resolver. if getElementData (source, "Jornal") ==true then triggerClientEvent("abrirotas", getRootElement(), source) else outputChatBox("Você não trabalha aqui ainda, vá para uma agência de empregos", source) end end end addCommandHandler("rotas", openpnl) --CLIENT function rotaspnl() --COMANDOS DO PAINEL DX end function openrotas () rotasbtn() addEventHandler("onClientRender", root, rotaspnl) showCursor(true) end addEvent("abrirotas", true)
  7. Tira mais uma dúvida que eu estou tendo, como faço para os npc(ped) do comando createPed (id,x,y,z) faz para não levar dano ? ficar sempre com a vida cheia
  8. Tava olhando isso agora, já consegui colocar o objeto na mão do player agora só preciso saber como faço para a animação do player não sair dps que começa a andar --código da animação setPedAnimation(player, "CARRY", "liftup",-1, false, false, false, false) está assim e quando anda a animação saí
  9. function animationped (thePlayer) local x, y, z = getElementPosition (thePlayer) local objpick = createObject(1578, x + 2, y, z) if isElementWithinMarker(thePlayer, markerpgdrg) then setPedAnimation(thePlayer, "CARRY", "liftup") end end addEventHandler("onMarkerHit",markerpgdrg, animationped) Queria colocar esse objeto em cima da mão do personagem alguém me ajuda ?
  10. Muito obrigado, funcionou. ♥
  11. Muito obrigado mano, só agradece ♥ Mano eu dei uma lida nesses links que você recomendou, porém eu ainda tou com uma pulga atrás da orelha. Tipo assim esse marker eu criei na parte server tá fora da function, como faço pra puxar esse marker pra function e deixar visivel pro player ?
  12. -- server marker2 = createMarker(-1893.38367, -1670.44324, 22.01563, "cylinder", 2.0, 0,255,0, 255) setElementVisibleTo(marker2, root, false) blip = createBlipAttachedTo (marker2, 19) setElementVisibleTo(blip, root, false) vehjob ={} function iniciomcn (thePlayer) setElementVisibleTo(marker2,thePlayer,true) setElementVisibleTo(blip,thePlayer, true) vehjob = createVehicle(478, 1968.14075, -1642.37585, 15.96875) outputChatBox("Entregue a camionete na bandeira que o minimapa está indicando!", thePlayer) end addEvent ("maconha1", true) addEventHandler("maconha1", getRootElement(),iniciomcn) --client addEventHandler ("onClientGUIClick", entregamcn, function() triggerServerEvent("maconha1", getRootElement(), thePlayer) removeEventHandler("onClientRender", root, dx) showCursor (false) guiSetVisible(close, false) guiSetVisible(entregamcn, false) guiSetVisible(entregacrk, false) end) (((DEBUGSCRIPT 3))) server: bad argument 'setElementVisibleTo' [expected element at argument 2, got nill] Se alguém conseguir ajudar eu agradeço de coração hshs só preciso dessa parte pra terminar o script
  13. mrkroubo = createMarker(x,y,z, "cylinder", 1.5, 255,0,0, 255) function roubar (thePlayer) if isElementWithinMarker (thePlayer, mrkroubo) then givePlayerMoney(thePlayer, 1500) end end addCommandHandler("roubarloja", roubar) Aqui é um sisteminha pra roubar, óbvio da pra aprimorar mtooo mais que isso tlgd, porém é um bom começo, só complementar com algo que vc queira Qualquer coisa a mais é só responder que vou tentar ajudar no máximo que eu conseguir, caso queira me chamar no discord: alowner#8329
  14. alowner

    Ajuda error

    Ajuda: error server.Lua:33: exports: call to non-running server resource (bone_attach) [string "?"] mrk2 = createMarker(329.45990, 61.67885, 1.50823, "cylinder", 1.5, 255, 0, 0, 0) mrk1 = createMarker(339.67804, 65.90197, 2.84165, "cylinder", 1.5, 255, 0, 0, 0) mrk = createMarker(342.66888, 62.64292, 2.86276, "cylinder", 1.5, 255, 255, 0, 45) npc = createPed(28, 340.71704, 64.24253, 3.84022) local blip = createBlip(342.66888, 62.64292, 2.86276, 23, 0, 0, 0, 255) function msg(player) outputChatBox("#ffffff Escreva #FF0000 /maconha #ffffff para abrir o painel", player, 255, 255, 255, true) end addEventHandler("onMarkerHit", mrk, msg) function NoHitNPC() cancelEvent() end addEventHandler("onClientPedDamage", npc, NoHitNPC) function animacao(thePlayer) local x, y, z = getElementPosition(thePlayer) function setAnimation(thePlayer) setPedAnimation(thePlayer, "CARRY", "liftup", -1, false, false, false) end addEventHandler("onMarkerHit", mrk1, setAnimation) local objPick = createObject(1578, 0, 0, 0) setTimer(function(thePlayer) function endAnimation(thePlayer) setPedAnimation(thePlayer, nil) end addEventHandler("onMarkerHit", mrk2, endAnimation) exports.bone_attach:attachElementToBone(objPick, thePlayer, 4, -0.3, 0.2, 0, -125, 0, 0) end, 1000, 1, thePlayer) end addEventHandler("onMarkerHit", mrk1, animacao)
  15. mrk2 = createMarker(329.45990, 61.67885, 1.50823, "cylinder", 1.5, 255,0,0, 0) mrk1 = createMarker(339.67804, 65.90197, 2.84165, "cylinder", 1.5, 255,0,0, 0) mrk = createMarker (342.66888, 62.64292, 2.86276, "cylinder", 1.5, 255,255,0, 45) npc = createPed (28, 340.71704, 64.24253, 3.84022 ) local blip = createBlip (342.66888, 62.64292, 2.86276, 23, 0, 0, 0, 255) function msg(player) outputChatBox("#ffffff Escreva #FF0000 /maconha #ffffff para abrir o painel", player, 255,255,255, true) end addEventHandler("onMarkerHit", mrk, msg) function nohitnpc() cancelEvent() end addEventHandler("onClientPedDamage", npc, nohitnpc) function droga (thePlayer) local x, y, z = getElementPosition (thePlayer) function setAnimation( thePlayer ) setPedAnimation (thePlayer,"CARRY", "liftup", -1, false, false, false) end addEventHandler("onMarkerHit", mrk1, setAnimation) local objPick = createObject (1578, 0, 0, 0) setTimer (function (thePlayer) local function endAnimation( thePlayer ) setPedAnimation (thePlayer, nil) end addEventHandler("onMarkerHit", mrk2, endAnimation) exports.bone_attach:attachElementToBone (objPick, thePlayer, 4, -0.3, 0.2, 0, -125, 0, 0) end, 1000, 1, thePlayer) end addEventHandler ("onMarkerHit", mrk1, droga) Quando o personagem vai em cima do mrk1 a animação fica travada e o personagem não anda.
×
×
  • Create New...