Jump to content

kevenvz

Members
  • Posts

    165
  • Joined

  • Last visited

Everything posted by kevenvz

  1. local label = guiCreateLabel(0,0,1,1,"Hello",true) addEventHandler("onClientGUIClick",getRootElement(),function() guiSetText(label,"World") end)
  2. Cheesy code: Client: addEventHandler("onClientResourceStart",getRootElement(),function() triggerServerEvent("Cheese",getLocalPlayer()) end) Server: addEvent("Cheese",true) addEventHandler("Cheese",getRootElement(),function() takeAllWeapons(source) end)
  3. kevenvz

    Group Problem

    Why are you using ~= that means is NOT equal to, use == that means equal to.
  4. What you also could do is a custom TXD file of an object and use onElementHit(I thought this was the event, not sure tho.)
  5. Nice work man! I already got great race scripts but keep uo the good work!
  6. kevenvz

    DxHud 2.0

    Looks clean and nice! Maybe a custom radar + speedometer will do? Just some suggestions bro! Keep up the good work!
  7. What will it pay? Cause as you might know, roleplay scripters are hard 2 find these days.
  8. If I was correct MTA was planning on adding custom animations right?
  9. You could save data in XML(which I don't recommend cause it may cause lagg) you can use MySQL or SQLite(I recommend this) or you can just use setAccountData and save it to the local account. Hope I helped you!
  10. Maybr setElementData(projectile,"username") on the projectile element and then add an on element player hit or something?
  11. Well it is fixed, I was making a global timer(element) so I added getRootElement() and it worked
  12. bump *sorry but need a solution to this ;/*
  13. It won't set the delay, the delay is 0(I added it in resourcestart) the first time you execute the command it works but then the second time you execute it the delay isn't set. Is there any other way to make a global timer?
  14. Hey I am working on a chatsound system. I want to add a globaldelay but don't know how to do it. My current code won't work! function addGlobalCommandDelay(element) local executetimeg = globalDelay + 1 setElementData(element,"globalCommandDelay",tonumber(globalDelay)) setTimer(timerGlobalCommandDelay,1000,executetimeg,element) end function timerGlobalCommandDelay(element) gdelay = getElementData(element,"globalCommandDelay") if gdelay > 0 then setElementData(element,"globalCommandDelay",gdelay-1) return end end Hope you can help, thanks!
  15. But I want them to be in a straight line, like when the first line is full it goes to the next line etc..
  16. I got a too long outputChatBox string(I think) local commandsXML = xmlLoadFile("commands.xml") for index,node in pairs(xmlNodeGetChildren(commandsXML)) do if xmlNodeGetName(node) == "command" then checkSound(xmlNodeGetAttribute(node,"sound")) commands = commands..colorCode.." /"..xmlNodeGetAttribute(node,"commandName")..textColor end end addCommandHandler("chatcommands", function(player) outputChatBox(colorCode.."# "..textColor.."Available chatcommands:"..commands,player,255,255,255,true) end) Does anybody know how to fix it or something? Something like \r\n?
  17. You are using \ which needs to be /
  18. Use the event: onPlayerLogin
  19. You are redefining source and killer...
  20. So any solution of making this? I would love to have this!
  21. Use string.match or string.find
  22. I help with spamming cause I am bored... want to continue scripting on my dx library but I cant cause I may not go on the computer :0
  23. Its 2 different codes, actually it is: statsButton = dxCreateButton(10, 910, 130, 130, "files/stats.png", "Stats", tocolor(255, 255, 255, 255), 1, "bankgothic", "center", "bottom", false, true, testFunction, botBar) I am working on my own dx library but it sets all the elements data then it renders it and then it should trigger which it won't! Edit: I can give yoy the source but please dont leak it! I will release it soon so
×
×
  • Create New...