Jump to content

Piorun

Members
  • Posts

    421
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Piorun

  1. Hi guys. I want ask you how much RAM i need and what procesor i should buy to start a MTA server. I want to set 100 slots at start, meybe later set 200 or more. Can u give me some advice about buying some good VPS for MTA server?
  2. I think it will be nice to give scripters this function to change movement speed. What are you thinking about it?
  3. ... f*** it. I use setElementData when the player log in. I think first code isn't good, because i wanted to check if the player is logged when he is using command or something else (pickup, marker ..).
  4. How to check that player is logged or not? I can't find function which i can use.
  5. Piorun

    Paintjobs

    It's not the same. I want to make it dynamic, for every car model - not only for 6 or more (i dont count that). So i think it's possible if rockstar made that.
  6. Piorun

    Paintjobs

    Man, but when I change texture for example for tahoma then this texture will be on EVERY tahoma cars. Paintjobs are some piece of tuning, so when we add paintjob to the server 'database' we can use it using addVehicleUpgrade .
  7. Piorun

    Paintjobs

    Hi. I was thinking about some new suggestions. I think it's good idea to make function which add a new, custom paintjob to any vehicle model. Example function: addPaintjob( string filepath, int vehiclemodel ) Server side ofc.
  8. Hi guys! I want to make my module using C++ language, but i dont know how to start, how to install SDK ... And can anyone give me some little tutorial or example code? Just for beggining.
  9. Piorun

    About tables

    Thanks .. i dont think so it's too easy . It help me a lot. Thanks once again.
  10. Piorun

    About tables

    Hi. I have table table = { [1] = {"something", 30}, [2] = {"something", 50} } and i want to make something to add numeric values like table[1][2] + table[2][2] + ... + table[n][2] = x but using lua functions. How to do? Sorry for my bad eng
  11. Piorun

    Lua classes

    K thanks. I know there are examples but it's more easier to uderstand when any user who is scripting try to explain it.
  12. Piorun

    Lua classes

    Damn .. dont understand it. Any examples?
  13. Piorun

    Lua classes

    How to create Lua class and how to use it?
  14. Piorun

    Error ???

    Sorry, but in my code i have lines: local charPane = { } local charLabel = { } but in future i want to add more labels something like that: charLabel[k][1] = guiCreateLabel(5,0,100,15,character[k],false,charPane[k]) charLabel[k][2] = guiCreateLabel(5,0,100,15,"Something",false,charPane[k]) charLabel[k][3] = guiCreateLabel(5,0,100,15,"Something",false,charPane[k]) guiSetFont(charLabel[k][1], "default-bold-small") end but when I made it i have error.
  15. Piorun

    Error ???

    Hi guys. Firstly i show you my code: for k,v in ipairs(character) do local y = ( k - 1 )* 55 charPane[k] = guiCreateScrollPane(7, 130 + y, 250, 50, false) charLabel[k][1] = guiCreateLabel(5,0,100,15,character[k],false,charPane[k]) guiSetFont(charLabel[k][1], "default-bold-small") end and I have error "attempt to index field '?' (a nil value)" in line: charLabel[k][1] = guiCreateLabel(5,0,100,15,character[k],false,charPane[k]) WHAT's wrong?
  16. I have new problem now. I want to move all of my static img which are in table and i want to do it softly, so im using onClientRender. Code: function moveRight() for k,v in ipairs(charImage) do local move = 0 local guiX, guiY = guiGetPosition(charImage[k],false) function moveGUI() move = move + 40 guiSetPosition(charImage[k],guiX + move, screenHeight - 120,false) if move == 160 then guiSetAlpha(charImage[k],0.5) removeEventHandler("onClientRender", getRootElement(), moveGUI) end end addEventHandler("onClientRender", getRootElement(), moveGUI) end end I fact only one img is moving correctly, but other are going far, far away ... How to fix that?
  17. I know, so how to make that? Ex. im entering mouse into rectangle, and this rectangle changing color.
  18. How to use this event on rectangle made by directx function? For example I have few rectangles and i want to sign one of this when im entering into rectangle. Pls help me .
  19. Hi guys! I have problem with my string. I have something like this: "1,2,3,4" and i want to get every number from this string (meybe into table?). I just want to create some fraction system. I have in my MySQL table some row named "members" and in it i have this values "1,2,3,4". I want to check if any player is in fraction (numbers are the ids of the characters). Please, help.
  20. Ok i found answer in wiki. It's enough to add into msg just table.concat(arg, " "). Thanks
  21. I've got code : addCommandHandler("b", function(player, cmd, msg) local px, py, pz = getElementPosition(player) for k,v in ipairs(getElementsByType("player")) do if getElementData(v, "char.name") ~= false then local vx, vy, vz = getElementPosition(v) local dist = getDistanceBetweenPoints3D(px, py, pz, vx, vy, vz) if dist < 20 then outputChatBox(msg, v, 0, 0, 0, true) end end end end) and when i type for ex. /b some text in chat box i can see only some. How to fix that?
  22. Ok this function start working after when i add
  23. Why function xmlLoadFile doesn't work in Client Side ????
  24. but for ex. function startResource is server side.
×
×
  • Create New...