Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. xXMADEXx

    Major lag issue.

    Thanks Towncivilian, seems to work perfect now! Incase you still need/want it: http://pastebin.mtasa.com/981408784
  2. Just put it in a server-side script and make sure it has access to startResource.
  3. @Damien_Teh_Demon - You forgot to add the vehicle model, and it's not a very good method to use INT for x, y, z, rx, ry, and rz. You should use something like FLOAT.
  4. xXMADEXx

    Major lag issue.

    Hi, everyone. So, I did this "manditory update" that MTA:SA had, but now whenever I join I server I get MAJOR, MAJOR lag. I get about 0-2 FPS. http://pastebin.mtasa.com/936390493
  5. Stolen: https://community.multitheftauto.com/ind ... 693&vote=1 Original: https://community.multitheftauto.com/ind ... ils&id=588 DONE
  6. xXMADEXx

    please read

    No, you don't, but they're highly recommanded. You can browse your router settings (http://192.168.0.1) and see if you can find anything about automatic IP changing and see if you can disable it.
  7. Well, besides Social's example, SAUR uses interpolateBetween to make the login have the bouncing effect. Here is an example, I took it from one of my codes and edited it a bit, but it should still work: local sx, sy = guiGetScreenSize ( ) local width, height = 600, 500 local point_start = { (sx/2-width/2), -height } local point_end = { (sx/2-width/2), (sy/2-height/2) } addEventHandler ( "onClientRender", root, function ( ) if not startTime then startTime = getTickCount ( ) end if not endTime then endTime = getTickCount ( ) + 3000 end local now = getTickCount() local elapsedTime = now - startTime local duration = endTime - startTime local progress = elapsedTime / duration x1, y1 = unpack ( point_start ) x2, y2 = unpack ( point_end ) local x, y, _ = interpolateBetween ( x1, y1, 0, x2, y2, 0, progress, "OutBounce" ) dxDrawRectangle ( x, y, width, height, tocolor ( 0, 0, 0, 150 ) ) end )
  8. addCommandHandler ( "startall", function ( ) for i, v in pairs ( getResources ( ) ) do if ( getResourceState ( v ) ~= "running" ) then startResource ( v ) end end end )
  9. Use an SQLIte database. dbConnect dbPoll dbQuery dbExec
  10. xXMADEXx

    Web panel

    Hey guys... So, everytime I go to where the online mta server manager should be (webadmin) it get this: I really don't know how to fix it because I've tried: http://192.168.0.9/webadmin too, but it says the same thing. Thanks.
  11. Simply use: onClientGUIClick -- event addEventHandler bindKey / unbindKey
  12. You can simply just export the TXD file to a PNG with TXD Workshop, and then edit in a photo editing program and then re-import it with TXD Workshop.
  13. freeroam/fr_client.lua line 1579 by default
  14. local positions = { { x, y, z }, { x, y, z}, -- & so on } function getRandomCoordinates ( ) return unpack ( positions [ math.random ( #positions ) ] ) end
  15. Like this? local positions = { { x, y, z }, { x, y, z}, -- & so on }
  16. Try this: function DeathMatchMaps() local row, col = guiGridListGetSelectedItem ( World.gridlist[1] ) if ( row == -1 ) then return end local text = guiGridListGetItemText ( World.gridlist[1], row, col ) if ( text == "1200" ) then triggerServerEvent("DeathMatch1" , getLocalPlayer() ) outputChatBox("Deathmatch 1'ye warplandin!", 0, 255,0, false) elseif ( text == "DM2" ) then triggerServerEvent("DeathMatch1", getLocalPlayer()) outputChatBox("Deathmatch 2'ye warplandin!", 0, 255, 0, false) end end addEventHandler("onClientGUIClick", World.button[1], DeathMatchMaps)
  17. He wasn't saying you didn't know scripts, he was just saying he doesn't write scripts for free. The dxDrawText will update every-render, example: addEventHandler ( "onClientRender", root, function ( ) dxDrawText ( tostring ( getElementData ( localPlayer, "Job" ) ), 0, 0, 0, 0 ) end ) In the code, for example, any time the "Job" data would change for localPlayer, it would automatically update the text.
  18. You can use createMarker to create the light.
×
×
  • Create New...