Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. It would basically be something like this: addEventHandler ( "onClientMinimize", root, function ( ) outputChatBox ( "Game minimized" ) end ) addEventHandler ( "onClientRestore", root, function ( ) outputChatBox ( "Game Restored" ) end )
  2. Use these events: onClientMinimize onClientRestore
  3. xXMADEXx

    HELP pliz

    Also, table index's are slip using a comma (,), not a semi-colon. groups = { "|USS|", "|BSAA|", "|TwP|" }
  4. xXMADEXx

    callRemote

    It's not returning anything, because it is trying to output theIP before it gets a response from getServerIp. You should do what TAPL said, and just define theIP at the top of the script, because it isn't going to change. addEventHandler ( "onResourceStart", resourceRoot, function ( ) theIP = getServerIp() end ) addCommandHandler("getip", function() outputChatBox(theIP) end ) function getServerIp() callRemote("http://www.nub.hj.cx/getServerIp.php", function(value) if (value ~= "ERROR") then outputChatBox("Returning value...") return value end end ) outputChatBox("Returning False...") return false end
  5. What? Your GTA V Server? This is GTA SA.
  6. Please remember, we're here to help, not code it for you.
  7. I'm pretty sure that those are a default items in the 3D model files (.dff)
  8. The /whowas and /whois data is stored in the default MTA database. You could make a new table in the default database using executeSQLQuery. Every time the player changes their nickname, you can update it in the database.
  9. Looks like this: http://wiki.sa-mp.com/wiki/Car_Components
  10. Read my table section on my tutorial. viewtopic.php?f=148&t=75501
  11. simple but useful @; Saml1er, not need of spaces. Spaces aren't needed, but it makes the code look better and easier to read. That's why most scripters use a ton of spacing.
  12. A: Crashing server with failed scripts Q: Favorite porn star?
  13. [url=http://www.billburmaster.com/rmsandw/wisconsin/images2/sb43wb894at45.jpg]http://www.billburmaster.com/rmsandw/wi ... 94at45.jpg[/url]
  14. That's not needed for a default event. Try doing something like this: function commandChats(cmd, ...) local msg = table.concat({...}, " ") triggerServerEvent("onPlayerChat", localPlayer, msg, 0, cmd, true) end
  15. Thanks for reporting the errors to me, I went ahead and fixed them. Thanks for the feed back, I'll change the colors now. Edit Updated - Added if/else/elseif
  16. Do you really have to be rude to the people trying to help you? If you want help, you need to be nice.
  17. Yes. You just have to start an apache web hosting program (Wamp, xampp, etc..) and then you have to open port 80. Other people will be able to connect using your IP.
  18. You can just use a variable local sx, sy = guiGetScreenSize ( ) local y = sy + 20 addEventHandler ( "onClientRender", root, function ( ) if ( y > ( sy / 2 ) then y = y - 2 elseif ( y < ( sy / 2 ) ) then y = ( sy / 2 ) end dxDrawText ( "Text", 0, y, sx, 20 ) end )
  19. It's not hard to simply click the wiki links: setTimer/moveObject to get examples.. The wiki pages explain everything.
  20. Add me on Skype, check your inbox. (I'm at school and don't have Skype on my school computer)
  21. xXMADEXx

    getServerIP

    There isn't very much a person could do on the web-side with callRemote...
  22. xXMADEXx

    Server name

    Use the Text Functions on the server-side.
×
×
  • Create New...