Jump to content

manve1

Retired Staff
  • Posts

    1,283
  • Joined

  • Last visited

Everything posted by manve1

  1. You are trying to get an integer from a table without unpacking it or using a for loop. I suggest you look into these articles: For loop Lua unpack
  2. GUIEditor_Label[5] = guiCreateLabel(752, 205, 48, 21," /NA",false) guiSetFont ( GUIEditor_Label[5], "clear-normal" ) function dxsetText ( ) local text = "" local UP = tonumber ( getElementData ( localPlayer, "level" ) ) or 0 if ( UP == 1 ) then text = " /60" elseif ( UP == 2 ) then -- el 2 significa el level text = " /110" -- el 110 es el texto que va a aparecer osea la experiencia que le va a faltar eso editenlo a su gusto ponganlo de acuerdo a lo que pusieron en el level.xml del resource exp_system elseif ( UP == 3 ) then text = " /160" elseif ( UP == 4 ) then text = " /250" elseif ( UP == 5 ) then text = " /500" elseif ( UP == 6 ) then text = " /2000" elseif ( UP == 7 ) then text = " /4000" elseif ( UP == 8 ) then text = " /8000" elseif ( UP == 9 ) then text = " /12000" elseif ( UP == 10 ) then text = " /16000" elseif ( UP == 11 ) then text = " /20000" elseif ( UP == 12 ) then text = " /24000" elseif ( UP == 13 ) then text = " /28000" elseif ( UP == 14 ) then text = " /32000" elseif ( UP == 15 ) then text = " /36000" elseif ( UP == 16 ) then text = " /40000" elseif ( UP == 17 ) then text = " /44000" elseif ( UP == 18 ) then text = " /48000" elseif ( UP == 19 ) then text = " /52000" elseif ( UP == 20 ) then text = " /56000" elseif ( UP == 21 ) then text = " /66000" elseif ( UP == 22 ) then text = " /78000" elseif ( UP == 23 ) then text = " /87000" elseif ( UP == 24 ) then text = " /99000" elseif ( UP == 25 ) then text = " /110000" elseif ( UP == 26 ) then text = " /119000" elseif ( UP == 27 ) then text = " /127000" elseif ( UP == 28 ) then text = " /139000" elseif ( UP == 29 ) then text = " /148000" elseif ( UP == 30 ) then text = " /156000" elseif ( UP == 31 ) then text = " /166000" elseif ( UP == 32 ) then text = " /179000" elseif ( UP == 33 ) then text = " /187000" elseif ( UP == 34 ) then text = " /198000" elseif ( UP == 35 ) then text = " /209000" end guiSetText(GUIEditor_Label[5],text) end addEventHandler ( "onClientResourceStart", resourceRoot, dxsetText ) addEventHandler ( "onClientElementDataChange", localPlayer, function ( dataName ) if ( dataName == "level" ) then dxsetText ( ) end end ) It's not 'failing to do so', what it does is it creates a new label every time you level up.
  3. dxCreateScreenSource dxUpdateScreenSource dxCreateRenderTarget look into these functions.
  4. manve1

    give weapon

    It didn't work because you tried giving the weapon to the resource root. client: triggerServerEvent("onGreeting",localPlayer,localPlayer) server: addEvent("onGreeting",true) addEventHandler("onGreeting",resourceRoot, function(p) giveWeapon(p,31,200) end)
  5. manve1

    Lag Problem!

    PCU = Power supply unit. Why would you want to kick players out when it's being highly in use? What I would do in your case is use getNetworkStats getNetworkUsageData getPerformanceStats
  6. function abcd(source,command) local Team = getTeamName(getPlayerTeam(source)) if (Team == "Police") then createObject(8082,1556,-1612,13.60000038147,0,0,0.25) addCommandHandler("police",abcd)
  7. I don't think there is a way then.
  8. manve1

    Delete LOD

    Go to map editor. Click 'world object' Hover over the object you want and you can see it says "LOD" with a number by side, remove that object and LOD will be gone. to do so you can use removeWorldModel
  9. https://wiki.multitheftauto.com/wiki/In ... _GNU_Linux
  10. manve1

    Random mesages

    local chatMessages = { { "Pentru a interactiona cu playeri apasati M apio Click dreapta pe Player" }, { "Pentru a viziona statisticile contului dumneavoasta apasati F10" }, { "Pentru o lista a Staff-ului Online scrieti /admins" }, { "Apasati F6 pentru PrivateChat" }, { "Pentru a deveni membru VIP vizitati forumul nostru [url=http://romaniadz.forumz.ro/]http://romaniadz.forumz.ro/[/url]" }, { "Puteti face misiuni la punct-ul galben de pe mapa" } } setTimer( function () outputChatBox(unpack(chatMessages[math.random(#chatMessages)]), root, 255, 255, 255) end, 60000, 0)
  11. Try editing dff files, you can try scaling them through there then changing them in-game (I can't think of another way)
  12. manve1

    Zona

    Col shapes and radar areas, of course and knowledge of scripting.
  13. manve1

    Zona

    Use col shapes and what do you mean by 'zonecolor'? when you enter a zone it tells you what color or like a turf and a radar area?
  14. You don't need to add additional code, you need only to change it as i have done it ages ago. simply: *open "survivorSystem.lua" *hit ctrl+f *type in "setPedAnimation" * hit enter * replace 4th event (e.g. setPedAnimation( one, two three, four )) to "nil" * repeat from the finding of "setPedAnimation" until everything is replaced.
  15. this: setElementInterior(requestBarberShop, 12, 411.962890625, -50.1884765625, 1000.5) to this: setElementInterior(requestBarberShop, 12)
  16. Does it have animations? e.g. When joined the server and downloaded, does the panel move in?
  17. manve1

    HUD 3D

    How isn't that on screen? If it wasn't on screen i am pretty sure you wouldn't be able to see it. And for the functions etc .. download the script and look into it, everything there is shown.
  18. manve1

    HUD 3D

    Take a look at this: https://community.multitheftauto.com/index.php?p= ... ls&id=8289
  19. Should find everything you need here: http://gmod.wikia.com/wiki/Trouble_in_Terrorist_Town
  20. manve1

    HUD 3D

    By scripting. Anyway, it depends how you want it to be made, pictures, rendering .. etc..
  21. spawn.lua inventory.lua pickups.lua try them
  22. Yeah .. we need more info, are you trying to add it in dayz gamemode?
×
×
  • Create New...