Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. very simple example time = getTickCount() x = 1000 y = 200 z = 20 function anim() x = x+0.01 y = y+0.02 setCameraMatrix(x,y,z, 0, 0, 0) if (getTickCount() - time >= 5000) then --if animation lasts for 5 or more seconds removeEventHandler("onClientPreRender", getRootElement(), anim) -- stop it end end addEventHandler("onClientPreRender", getRootElement(), anim) not tested, camera position was totally random! of course you can use another conditional to stop animation (like when camera its further than specified X,Y or Z value, etc etc)
  2. vipTrane and [MBA]KPu3uC - this is english language forum and you should use english when posting. Sealine - it doesnt looks like, its serious accusation..
  3. setPedLookAt = client side function moving camera with onClientPreRender event (tip: use onClientPreRender instead of onClientRender to fix "jumping animations" while moving camera) and setCameraMatrix. there is no function like moveCamera, etc
  4. same way as vehicles skins, just enter its id. remember you can only replace txd, you cant replace dff!
  5. https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup see example 2
  6. gta have something called "zones" - it can be easier to use zones already created.. https://wiki.multitheftauto.com/wiki/GetZoneName
  7. function getPositionRelatedToVehicle(theVeh, meters) local xx, yy, zz = getElementPosition(theVeh) local rx, ry, rot = getElementRotation(theVeh) local lx = xx + math.sin (math.rad(-rot)) * meters local ly = yy + math.cos (math.rad(-rot)) * meters return lx,ly end notice this will fail when car is driving uphill (rotated) - point will be underground, and isLineOfSightClear will fail. this is best thing i can give you anyway
  8. Debugging ~= debug window. debug window is only a small part in the art of debugging. read even 1000 times until you get what im saying.
  9. nice one! and its rare thing NOT to hear some ©rap or something-that-ppl-call-techno-but-it-isnt-techno in mta video
  10. if you uninstall .net you can safly install it again and all applications requiring .net will be fully working again.
  11. thanks, this is much more comfortable to browse the posts now
  12. Solid - getting, not "genting" Timic - i hope this one isn't solen from somewhere.. like your other 4 or so posts You need to prepare correct ACL. Maybe ask your friend (if he is friend and is the creator of this script - he will help you) how to do it? Post your ACL if you need further help.
  13. as i said in topic mentioned before - i had much problems with .net before, including problems with running mta. just try it.
  14. yup also could i ask you to post thumnails (as links to full image) instead of a lot of full images next time you are going to post much pictures?
  15. if info == "Destruction derby" then think and debug info is never defined..
  16. this probably is returning false: getPlayerTeam(source) so i think player doesnt have any team https://wiki.multitheftauto.com/wiki/Debugging
  17. First - every map should have at least TWO files in folder - meta.xml and map file. I think you have only *.map files, which was used in old MTA:Race. Am i right?
  18. @Vercetti1010: If you don't know how to help - don't try, because you are confusing people.. Error is clearly visible with that error message. as MiniGoveya said - there is no such function as getAlivePlayers() -- race gamemode have one, and if you want to use it - you have to copy it (with all other related parts of code) - or just add your code into race resource.
  19. really good mapping skills
  20. really cool you could make drivers within vehicles models and hide gta peds - they would look much better (but would be static)
  21. again: i wanted you to UNINSTALL any .net if you have this installed! NOT install.
  22. We are not supporting requests here. Who somebody would spend his free time doing something for some stranger? Learn scripting: https://wiki.multitheftauto.com/ Or use community version: https://community.multitheftauto.com/ Topic locked.
  23. Light on what? Lua scripting? You can use (bit bugged and not very comfortable) offline version of our wiki, check this topic: viewtopic.php?f=13&t=29330
  24. http://webcache.googleusercontent.com/s ... ra&strip=1
×
×
  • Create New...