-
Posts
4,144 -
Joined
-
Last visited
-
Days Won
1
Everything posted by dzek (varez)
-
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)
-
vipTrane and [MBA]KPu3uC - this is english language forum and you should use english when posting. Sealine - it doesnt looks like, its serious accusation..
-
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
-
same way as vehicles skins, just enter its id. remember you can only replace txd, you cant replace dff!
-
https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup see example 2
-
How to create a rectangle area and detect player position
dzek (varez) replied to simstosh's topic in Scripting
gta have something called "zones" - it can be easier to use zones already created.. https://wiki.multitheftauto.com/wiki/GetZoneName -
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
-
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.
-
nice one! and its rare thing NOT to hear some ©rap or something-that-ppl-call-techno-but-it-isnt-techno in mta video
-
MTA SA "crashes after Stop playing with yourself"
dzek (varez) replied to Samuel Rowe's question in Client
if you uninstall .net you can safly install it again and all applications requiring .net will be fully working again. -
thanks, this is much more comfortable to browse the posts now
-
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.
-
MTA SA "crashes after Stop playing with yourself"
dzek (varez) replied to Samuel Rowe's question in Client
as i said in topic mentioned before - i had much problems with .net before, including problems with running mta. just try it. -
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?
-
if info == "Destruction derby" then think and debug info is never defined..
-
this probably is returning false: getPlayerTeam(source) so i think player doesnt have any team https://wiki.multitheftauto.com/wiki/Debugging
-
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?
-
@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.
-
really good mapping skills
-
really cool you could make drivers within vehicles models and hide gta peds - they would look much better (but would be static)
-
MTA SA "crashes after Stop playing with yourself"
dzek (varez) replied to Samuel Rowe's question in Client
again: i wanted you to UNINSTALL any .net if you have this installed! NOT install. -
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.
-
Maybe it's just me...
dzek (varez) replied to Cool-Smurf's topic in Site/Forum/Discord/Mantis/Wiki related
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 -
http://webcache.googleusercontent.com/s ... ra&strip=1
