Jump to content

Tekken

Helpers
  • Posts

    1,414
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Tekken

  1. Tekken

    [Question]

    Daca nu ai nicio experienta in Lua iti recomand acest tutorial: succes! PS: Incearca altceva, RP e destul imo.
  2. Moved your topic to a more appropriate section as this is a resource request, also please use [REQ] tag in the future for resource requests! Have a good day!
  3. In your meta.xml you have 06.png and in your code is 6.png
  4. Hello, All you need is https://wiki.multitheftauto.com/wiki/SetElementModel Or the https://wiki.multitheftauto.com/wiki/SpawnPlayer function 6th argument is the skin, all you need to do is to make sure that function supplies the same skin id when die/join. Greetings.
  5. What is it that you need help with? Be more specific, show us what you’ve already done.
  6. I've moved your topic to the appropriate section for the best results! (Mudei seu tópico para a seção apropriada para obter os melhores resultados!) Greetings!
  7. Why can't you place the rectangle down there? Also use math.floor to get a integer out of a float: math.floor(97.2371) = 97
  8. I’ve moved your topic to scripting section for best results.
  9. You can try replace the default walk animation with the new one from the ifp file?
  10. if getElementSpeed(veh, 1) >= 100 then playSound(...); end you can get the useful function 'getElementSpeed' from here: https://wiki.multitheftauto.com/wiki/GetElementSpeed
  11. You forgot: https://wiki.multitheftauto.com/wiki/EngineReplaceAnimation My mistake, have you tried with, -1 instead of 200 ms?
  12. Hi, First of all your link is dead, second of all can you develop a little? Greetings.
  13. You should copy and paste this useful function from here https://wiki.multitheftauto.com/wiki/GetPlayerFromPartialName in vip resource
  14. I can’t, you will have to integrate it yourself in your DayZ gamemode
  15. local rewardTable = { [5] = {"M4", "M4 Mag", 90}; -- add ammo and ammount of ammo to give! [10] = {"Coyote Backpack"}; -- for items that don't have ammo no need to add anything after! -- you will have to add the rest! }; -- add this to spawn function! local pLvl = getElementData(player, "lvl") or 0; if pLvl >= 5 then --check if valid reward possible! for i = 5, pLvl, 5 do --start from 5 and jump from 5 to 5! as there are no other rewards in between! local data = rewardTable[i] or false; if data then setElementData(player, data[1], (getElementData(player, data[1]) or 0) + 1); -- Give M4; if data[2] then -- check if must give ammo? setElementData(player, data[2], (getElementData(player, data[2]) or 0) + data[3]); -- Give ammo; end end end end -- Add this just after items refresh! for _,player in ipairs(getElementsByType("player")) do local pLvl = getElementData(player, "lvl") or 0; if pLvl >= 20 then setElementData(player, "CZ 550", (getElementData(player, "CZ 550") or 0) + 1); -- Give CZ 550; end end --For the scoreboard you just have to add it by yourself you will just have to add another line with getElementData(player, "lvl")
  16. Ok, what exactly do you need help with?
  17. Exactly the same you did with onClientClick but with your gui() function.
  18. Hi, you have my simple level system in my signature, however you need to setup the rewards by yourself, is not that complicated. Also moved your topic to resources section as this is more a request than a scripting question.
  19. getPedAnimation Gets the animation of a player or ped that was set using setPedAnimation. That might not work @Skully (Not sure tho)
  20. Try: /stop joinquit in chat. (if I remember correctly that’s how it’s called the default join/quit resource)
  21. There you go, best tutorial out there:
  22. Tekken

    sound

    Get all players within a range of like 30m and send a client event for all that players to playSound3D
  23. That's a lot of work just to get the rotation
  24. Try 0 as x and y rotation as for now you set the actual x and y positions
×
×
  • Create New...