Jump to content

Dark Dragon

Members
  • Posts

    1,619
  • Joined

  • Last visited

Everything posted by Dark Dragon

  1. local rootElement = getRootElement() --define what rootElement is (that's probably your main problem)local NPC = createPed(124,0,0,5)local screenWidth, screenHeight = guiGetScreenSize() --you don't need to get this every frame, it will not changefunction NPCnametag() local sx,sy = getScreenFromWorldPosition (getElementPosition(NPC)) if sx then --this will check if the ped is actually on screen (without this check you would have many errors in your debug log) dxDrawText("Bob",sx,sy,screenWidth, screenHeight,tocolor ( 255, 255, 0, 255 ), 2,"sans") --I'm not sure if the text was supposed to be invisible but I think I'll just change that too endend function HandleTheRendering() addEventHandler("onClientRender",rootElement, NPCnametag)endaddEventHandler("onClientResourceStart",rootElement, HandleTheRendering)
  2. changing that would take you about 7 seconds per custom model. you just have to replace numbers
  3. changing that would take you about 7 seconds per custom model. you just have to replace numbers
  4. then you should try to use moveObject to rotate it correctly before moving it for the second time
  5. then you should try to use moveObject to rotate it correctly before moving it for the second time
  6. this will be up to the community
  7. this will be up to the community
  8. there are more than enough unused object ids (by unused i mean objects that you don't find anywhere anyways)
  9. there are more than enough unused object ids (by unused i mean objects that you don't find anywhere anyways)
  10. the problem is probably that your second function is not used at all function createShip () pirateShip = createObject ( 8493, 2458, -2718, 15, 0, 0, 273 ) setTimer ( startShip, 60000, 1 )endaddEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createShip ) function startShip () moveObject ( pirateShip, 120000, 2800, -2718, 15 ) setTimer( moveShip, 120000, 1)end function moveShip () moveObject ( pirateShip, 120000, 3000, -2190, 15, 0, 0, -183 )end like this it should work
  11. the problem is probably that your second function is not used at all function createShip () pirateShip = createObject ( 8493, 2458, -2718, 15, 0, 0, 273 ) setTimer ( startShip, 60000, 1 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createShip ) function startShip () moveObject ( pirateShip, 120000, 2800, -2718, 15 ) setTimer( moveShip, 120000, 1) end function moveShip () moveObject ( pirateShip, 120000, 3000, -2190, 15, 0, 0, -183 ) end like this it should work
  12. this and robhol is not just any member. he is THE member.
  13. this and robhol is not just any member. he is THE member.
  14. also make sure your FPS limit is set to 45 or below. some gta internal bug screws this with higher fps
  15. also make sure your FPS limit is set to 45 or below. some gta internal bug screws this with higher fps
  16. hi, try this link: https://community.multitheftauto.com/index.html?p=resources much stuff (for example police) has been already done pretty well and has been added to this collection of useful resources. to learn how to script in mta i recommend you those pages: lua in general http://www.lua.org/pil/index.html http://lua.gts-stolberg.de/en/index.php wiki main page (if you got any question theres a huge chance you will find an answer here, have a look at the mentioned links on the main page for example debugging if something doesnt work and you want to fix it) https://wiki.multitheftauto.com/wiki/Main_Page robhols guide for beginners (well written and useful to most newbies) http://robhol.net/guide/basics that's pretty much all
  17. hi, try this link: https://community.multitheftauto.com/index.html?p=resources much stuff (for example police) has been already done pretty well and has been added to this collection of useful resources. to learn how to script in mta i recommend you those pages: lua in general http://www.lua.org/pil/index.html http://lua.gts-stolberg.de/en/index.php wiki main page (if you got any question theres a huge chance you will find an answer here, have a look at the mentioned links on the main page for example debugging if something doesnt work and you want to fix it) https://wiki.multitheftauto.com/wiki/Main_Page robhols guide for beginners (well written and useful to most newbies) http://robhol.net/guide/basics that's pretty much all
  18. does this happen on all servers or only on one specific one?
  19. does this happen on all servers or only on one specific one?
  20. did you try updating your graphic cards driver? this could be the problem or maybe try the latest version of direct x 9
  21. did you try updating your graphic cards driver? this could be the problem or maybe try the latest version of direct x 9
  22. your server has to be running for some hours before game monitor picks it up, be sure you've waited long enough. if this doesnt help try to disable your firewall for some time, see if it helps, if it does try to configure it right and turn it on again
  23. your server has to be running for some hours before game monitor picks it up, be sure you've waited long enough. if this doesnt help try to disable your firewall for some time, see if it helps, if it does try to configure it right and turn it on again
  24. oh thats even better, thank you, will be helpful to me too (i'm working on it too)
  25. oh thats even better, thank you, will be helpful to me too (i'm working on it too)
×
×
  • Create New...