-
Posts
2,973 -
Joined
-
Last visited
-
Days Won
3
Everything posted by 50p
-
I've started similar script myself some time ago but never got around to finish it. Here is a link if you're interested: http://scripteditor.beta.mtasa.com/arch ... inimap.zip There is a lot of trial and error when doing things like this. Oh, if I remember correctly drawing image section will tile the image, so if you go too far the image will tile, you will not see transparency at the edge of the image, it will repeat itself.
-
damien111, pay attention to detail when coding. If you don't get xml file to work it's probably your own mistake so visit: http://www.w3schools.com/xml/xml_validator.asp paste your file content there and it'll tell you what is wrong with your file.
-
How would you expect to load a file which isn't downloaded? Simple logic. I have not tried it myself but you could try to delete the files once they are loaded. fileDelete
-
For your information, server-side getCameraMatrix will return the values you previously set with setCameraMatrix, you will not get position of player's camera unless you set it first. That's because server doesn't need to update this information every tick, this would lag the server and eventually freeze it.
-
@myonlake, why create new table of skins if it's already in the xml file and in classGroups table or local class table in spawn request function? @damien111, why adding ACL support if password protection is good enough for clans. Nobody will know the password except for the clan members and server owner. If you can't trust your clan member then why have such member?
-
function setElementForwardVelocity( elem, vel ) local ang = getElementRotation( elem ); ang = math.rad(90 - ang); local vx = math.cos( ang ) * vel; local vy = math.sin( ang ) * vel; return setElementVelocity( elem, vx, vy, 0 ); end Haven't tested it but should work.
-
You will have to modify race_nos to work only with them types of maps. If race has exported function to check what is the map type then you can use them and then disable nos (unbind the keys).
-
Ask the questions here. Nobody will add you on Skype just to answer your questions.
-
What do you think freecam resource does? It uses setCameraMatrix to do the movement/rotation with events. All you need to know is 3D maths to calculate coords of the camera's position and the look-at coords. I made myself a custom camera resource, which imitated the camera used by GTA but due to GTA engine the coords of the player during animations aren't well synched so I dropped the project. Almost anything is possible in MTA, the only limit is your imagination. Of course there are things which you can't do but sometimes there are workarounds. @Sharingan, while you're doing custom camera, you could also make custom aim system (zoom in/out - FOV or closer camera position, overlay image to simulate looking down the sight like in FPS, etc.). That's a lot of work though.
-
I remember testing these, it was fun. Anyway, do you have an idea for the gamemode? How are these powers are going to be used? Willing to share the info or want to keep it as a secret until release? Make some more videos because I know there are plenty of powers! Keep it up man! PM me if you have an idea for a power and need more models.
-
If you leave the 4th argument off or set it to 0 (this is what you do) then the ammo will stay the same. If you had 0 in the clip before using this function then you will be left with 0. Doesn't it make sense? I haven't tested this idea but if you want to reload then you'll have to swap weapons and then change back to this weapon or try giveWeapon with ammo 0 and setDefault to true.
-
Read the whole post not just first few words.
-
There is no need to convert. You have to create a resource which will load the models with the functions posted above, and yes, it will be server's folder.
-
Make sure it's in the server's resources folder not the client. Resources may have errors and therefore won't load and this is the message you will see if you'll try to run a resource which failed to load. Type in the server's console "info gate-system" to get more information about gate-system resource.
-
There is a little update which many people asked me for.
-
Low-riders: Blade Remington Savanna Slamvan Tornado Street Racers: Elegy Flash Jester Stratum Sultan Uranus I don't think there is more.
-
There was no need to change anything. You made it even worse (like removing Download section). #mtatools is dead because there was nobody there anyway.
-
Remember, when you die from explosion you won't even be left with 1hp. You could set his health to 1 but that won't prevent him from dying since he's already dead.
-
You seem to have problem with code indentation. Indent your code properly and you'll find your problem, also check debugscript window to trace your errors. You haven't even explained what your problem is.
-
Yeah, that's correct. If you want your addon to start with race then you have to change race meta.xml. In the settings section you will find addons that start with race.
-
Don't use onClientRender for this. Use onColShapeHit if you created a col shape (https://wiki.multitheftauto.com/wiki/OnColShapeHit) and do it server-side or triggerServerEvent to killPed but I don't see any reason why it should be client-side.
-
Yeah, if you want something to happen only when your resource starts then use resourceRoot for "onResourceStart" but if you want your gamemode to do something when map for your gamemode starts then you will have to use root because resources are not children of other resources or your gamemode resource (well they could be but it'd be more confusing for you).