MaurO^

Members
  • Content count

    43
  • Joined

  • Last visited

Community Reputation

2 Neutral

About MaurO^

  • Rank
    Rat
  • Birthday 08/12/1999

Details

  • Gang
    Scripting MTA:SA

Recent Profile Visitors

982 profile views
  1. MaurO^

    Problema con engineLoadIFP

    Resuelto.
  2. MaurO^

    Problema con engineLoadIFP

    Tengo un problema cargando la animación personalizada, cuando escribo /anim dance1 la animación no comienza, si lo hago solo desde el lado del cliente, sin usar triggers esto si funciona ¿Es posible que no se pueda usar con triggers? Client.lua: local name = "bailes_fornite" local IFP = engineLoadIFP( "bailes.ifp", name) if not IFP then outputChatBox( "Fallo al cargar el archivo 'bailes.ifp'" ) end function setAnimation(_, animationName) if IFP then --setPedAnimation(localPlayer, name, anim ) triggerServerEvent("onAnim", localPlayer, name, animationName) end end addCommandHandler("anim", setAnimation) Server.lua: function animar(name, animationName) setPedAnimation(source, name, animationName) end addEvent("onAnim", true) addEventHandler("onAnim", root, animar)
  3. MaurO^

    Problem with engineLoadIFP

    I have a problem loading the custom animation, when I write / anim dance1 the animation does not start, if I do it only from the client side it works. Is it possible to do this with triggers? Cliente.lua: local name = "bailes_fornite" local IFP = engineLoadIFP( "bailes.ifp", name) if not IFP then outputChatBox( "Fallo al cargar el archivo 'bailes.ifp'" ) end function setAnimation(_, animationName) if IFP then --setPedAnimation(localPlayer, name, anim ) triggerServerEvent("onAnim", localPlayer, name, animationName) end end addCommandHandler("anim", setAnimation) Server.lua: function animar(name, animationName) setPedAnimation(source, name, animationName) end addEvent("onAnim", true) addEventHandler("onAnim", root, animar)
  4. MaurO^

    Help Radar Area

    what I want is to draw something around that area for example: https://imgur.com/a/Ccsp2Ps
  5. MaurO^

    Help Radar Area

    I created a radar area that shrinks type pubg but I do not know how to show the drawing that highlights the area, what is the function that I should use for that? Thank you.
  6. MaurO^

    Problema con funcion de Spectador

    Hola, podrias crear una condición para que directamente tu no aparezcas en dicha gridlist aca de dejo un ejemplo: for i, players in ipairs(getElementsByType("player")) do if(players ~= localPlayer) then row = guiGridListAddRow( gridlist ) --guiGridListSetItemText(...) end end
  7. MaurO^

    help

    thanks, it worked for me
  8. MaurO^

    help

    Hello, how can I detect when a player loses or receives money? I want to create a dxRectangle that appears when a player loses or recives money
  9. MaurO^

    random occurrence of objects

    objects = { {1264, -2168.7001953125,1879.7998046875,-69.199996948242}, {926, -2198.599609375,1853.400390625,-57.599998474121}, {1356, -2156.6796875,1838.1103515625,-65.067947387695} } function createRandomObject() if isElement(object) then destroyElement(object) end if isElement(blip) then destroyElement(blip) end randomObject = math.random(#objects) id, x, y, z = unpack(objects[randomObject]) object = createObject(id, x, y, z) blip = createBlipAttachedTo(object, 0) end addCommandHandler("create", createRandomObject) with this example, write /create will create a random object.
  10. MaurO^

    Timer

    htt marker = createMarker(1.00, 1.00, 1.00, "cylinder", 0, 0, 0, 0, 0) time = 0 function teleport(player) local x, y, z = getElementPosition(player) local rotZ = getElementRotation ( player ) local aa = {} if getTickCount() - time >= 30000 then -- 30 seg if (source == marker and getElementType(player) == "player") then setElementPosition(player, 1.00, 1.00, 1.00) setElementFrozen(player, false) setTimer(setElementFrozen, 1000, 1, player, false) time = getTickCount() end else outputChatBox("You must wait 30 seconds to use this.", player, 255, 0, 0) end end addEventHandler("onMarkerHit", root, teleport)
  11. MaurO^

    [HELP] Why not working onMarkerHit event?

    function ccv (thePlayer) local accountname = getAccountName (getPlayerAccount(thePlayer)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then setTimer(function() ve1 = createVehicle ( 535, -2220.98706, -129.69173, 35.32031 ) ma1 = createMarker ( -2221.09668, -129.61031, 33.88103, "cylinder", 7.5, 255, 255, 0, 5 ) addEventHandler( "onMarkerHit", ma1, marker1) end, 1000, 1) end end addCommandHandler("ccvp", ccv) function marker1( hitElement ) if(getElementType(hitElement) == "player") then if isElement(ve1) then destroyElement(ve1) end if isElement(ma1) then destroyElement(ma1) end end end try this.
  12. MaurO^

    Help me

    7/5000 Thank you Sugerir un cambio Thank you!
  13. MaurO^

    Help me

    - If I use setElementPosition on the client side when going to x zone, will the players see me when I go to x zone? or will I just see myself?
  14. MaurO^

    Help me

    Hi, I'm new here, let's say I've learned a lot but what I still have trouble understanding is the deference between creating a client script or server, if I create a marker in client, only I will see it and the other players will not? creating a warp system and this bothers me a lot
  15. MaurO^

    Ayuda con jugadores en una dimension |AYUDA|

    Completa la función DxDrawText en el ejemplo que te dio alex y te funcionara.