Jump to content

50p

Retired Staff
  • Posts

    2,973
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by 50p

  1. Timers are useful and you must know how to use it. As Lua is typeless language you must check if variable/param is that what it should be. First, scripts gets executed from top to the bottom, from left to right. In the example above you call a function that does not exist at the time you call it. It will also happen if you addEvent AFTER you attach a function to it.
  2. You don't use brackets when you call a function using timer.: setTimer (stufftest, 120000, 0) function stufftest() outputChatBox("stuff test function") end
  3. And the functions are don´t to see ingame stufftest() is just an example to show you what to do. You can show or hide the window using guiSetVisible func. You can change its text too, using guiSetText func.
  4. Have you seen this: viewtopic.php?f=91&t=22247
  5. Have you seen this: viewtopic.php?f=91&t=22247
  6. Kapil, if you add it should add the file to extraction from zip archives and therefore you can save/load file to/from the resource.
  7. Kapil, if you add it should add the file to extraction from zip archives and therefore you can save/load file to/from the resource.
  8. Can you please give me the error and the line that happens? It will help a lot.
  9. Can you please give me the error and the line that happens? It will help a lot.
  10. If your bank in not in an interior delete the "entrance" and "exit" lines.
  11. If your bank in not in an interior delete the "entrance" and "exit" lines.
  12. You need to use onClientRender (this event is triggered on every frame) or a timer. Then on every frame get the label's position and set new position by taking away some pixels from X coord. Eg.: addEventHandler( "onClientRender", getResourceRootElement( getThisResource( ) ), function( ) local x,y = guiGetPosition( label, false ) guiSetPosition( label, x-10, y, false ) end ) You'd have to remake this code a little bit, because this will keep moving the label even if it goes out of screen.
  13. You need to use onClientRender (this event is triggered on every frame) or a timer. Then on every frame get the label's position and set new position by taking away some pixels from X coord. Eg.: addEventHandler( "onClientRender", getResourceRootElement( getThisResource( ) ), function( ) local x,y = guiGetPosition( label, false ) guiSetPosition( label, x-10, y, false ) end) You'd have to remake this code a little bit, because this will keep moving the label even if it goes out of screen.
  14. 1. There are camera functions: Server-side and Client-side 2. It depends what's your choice. You can load them from XML file or you can "hardcode" them in the resource. XML functions.
  15. 1. There are camera functions: Server-side and Client-side 2. It depends what's your choice. You can load them from XML file or you can "hardcode" them in the resource. XML functions.
  16. You can use call function to call a function from different resource and send a variable to different resource using it as an argument..
  17. You can use call function to call a function from different resource and send a variable to different resource using it as an argument..
  18. There is http://kihc.pastebin.com/m1924be5d
  19. There is http://kihc.pastebin.com/m1924be5d
  20. Kapil, use isGuestAccount and getClientAccount to see if player is logged in. It is more secure.
  21. Kapil, use isGuestAccount and getClientAccount to see if player is logged in. It is more secure.
  22. https://community.multitheftauto.com/index.php?p= ... ils&id=124 This is a simple script that saves your coords into file and displays them on the bottom the screen. There was more advanced script but you'd have to search for it.
  23. https://community.multitheftauto.com/index.php?p= ... ils&id=124 This is a simple script that saves your coords into file and displays them on the bottom the screen. There was more advanced script but you'd have to search for it.
×
×
  • Create New...