Jump to content

-.Paradox.-

Members
  • Posts

    1,239
  • Joined

  • Last visited

Everything posted by -.Paradox.-

  1. triggerServerEvent addEvent addEventHandler setCameraMatrix interpolateBetween "onClientPreRender"
  2. Oh jesus, here is an introduction: Client: local car_c = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) local cars = getElementsByType("vehicle") local column = guiGridListAddColumn( car_c, "Cars_id", 0.85 ) local tstBtn = --Button Here for numb, car in ipairs(cars) do local id = getElementModel(car) local row = guiGridListAddRow ( car_c ) guiGridListSetItemText ( car_c, row, column, id, false, true ) end addEventHandler("onClientGUIClick", guiRoot, function() if source == tstBtn then local row = guiGridListGetSelectedItem( car_c) if row then local ID = guiGridListGetItemText( car_c, row, 1) triggerServerEvent("onVehiclePurchased", localPlayer, ID) end end end) Server addEvent("onVehiclePurchased", true) addEventHandler("onVehiclePurchased", root, function(ID) if ID then local x, y, z = getElementPosition(source) local vehicle = createVehicle (ID, x, y, z, 0, 0) warpPedIntoVehicle(source, vehicle) end end) And i don't give my skype to anyone
  3. That's not the full code, at least post gridlist part
  4. One little question, What if i wanted to output in chat box a random text from second variable, like: local tbl = {"It won't output this one", "But it will output this one"}, {"It won't output this one1", "But it will output this one1"}, {"It won't output this one2", "But it will output this one2"}, } local text1,text2 = unpack(tbl) outputChatBox(tostring(math.random(text2)), 255,55,55,false) --? Thanks in advance
  5. http://wesley.multitheftauto.com/mtasa/ ... sa-1.4.exe
  6. -.Paradox.-

    Table

    Hello, Is this possible? e.i: /command id2 outputs "Hello" and if inserted /command id1 it will output "Hello World", Thanks in advance. The code is a little bit messy, sorry about it local table = {"Hello World", "id1", "path2"}, {"Hello", "id2", "path2"}, } function infocmd(me, _, info) local info = tostring(info) if info == table[id] then --code outputChatBox(--[[idk what to insert here to make it output first text on the table]]) end end addCommandHandler("command", infocmd)
  7. -.Paradox.-

    Lag

    Starting from MTA Server.exe
  8. -.Paradox.-

    Lag

    Hi, Recently when i try to play in my local server to test some codes, my ping is normally between 0 and 1 but after a big while(around 1 hour), it strikes to 53 - 89, And i'm using my own router sharing only to my phone which is actually off and there programs that actually use internet connection are off too but problem still exists, It gets back to normal after restarting the game (MTA). MTA:SA Server v1.4-release-6760
  9. Try with shaders, If you mean paintjobs
  10. Thanks myonlake and Tapl, I got it
  11. Calling onClientPreRender when the player is wasted right?
  12. -.Paradox.-

    Question

    Hi, Is it possible to cancel onPlayerWasted camera view (2D moving camera) and render a new one with setCameraMatrix and attach it to player's bone position?
  13. Well, That's weird if its not functioning why did they add it into the flags option
  14. Well you can do that using setWeaponProperty engineLoadTXD engineImportTXD engineLoadDFF engineReplaceModel See Weapon_Flags Basic characteristics 0x000100 - is a throwing weapon 0x000200 - heavy weapon - can't jump 0x000400 - fires every frame within loop (ie paint spray) 0x000800 - can use 2x guns at same time
  15. A: I don't believe in supernatural things that are not proved by science Q: Why are you asking this..
  16. There is also a possibility of someone stealthy knife the player while using that event
  17. OnClientClick string button, string state, int absoluteX, int absoluteY button: This refers the button used to click on the mouse, can be left, right, or middle state: This can be used to tell if the user released or pressed the mouse button, where up is passed if the button is released, and down is passed if the button is pushed absoluteX: This refers to the 2D x coordinate the user clicked on his screen, and is an absolute position in pixels. absoluteY: This refers to the 2D y coordinate the user clicked on his screen, and is an absolute position in pixels.
  18. Also use setDevelopmentMode to know what's nrg's sfx sound id and remove it using setWorldSoundEnabled and to apply it you need to create a 3D sound and attach it to the vehicle i guess attachElements playSound3D Good luck P.S: /debugscript 3 to output worlds sound after using setDevelopmentMode
  19. -.Paradox.-

    Question

    Hello, Is it possible to get how many KB or MB the player downloaded with a command? If it's possible, Telling the functions and events is useful enough, Thanks
  20. That's the code from wiki page :b
  21. EngineSetModelLODDistance ? EngineSetModelLODDistance
×
×
  • Create New...