
GhostXoP
Members-
Posts
402 -
Joined
-
Last visited
Everything posted by GhostXoP
-
There has to be somebody.. Learning experience for the both of us.
-
The number must represent something, a ratio to something for example change in rate of Km/h per ms
-
That has nothing at all to do with what i had asked for. If i wanted to find out how fast a vehicle was going id of calculated it myself. How is the Property engineAcceleration in setVehicleHandling Measured. For example, what part of what equation does it play a roll in. If its torque, is this Foot Pounds? (<- that is just an example of what i'm asking for)
-
If that parent resource is running
-
Because hedit probably isn't defined anywhere else in any other resource.
-
What is the measurement for this? Is this number in relation to the vehicles top speed? May i have an explanation over the measurement used for this property?
-
https://forum.multitheftauto.com/viewtop ... a725576159 Ask that guy, he probably knows.
-
Find the F1 key bind and its function, with the function do an if statement if local player is an admin then --F1 procedure-- end
-
I know what i did wrong, i've been using colshapes for so long, i forget there is marker events. Fixed, thanks for your time.
-
I have two sets of code that are client side, one sets an event handler for onClientColshapeLeave for when someone enters a colshape. When they leave, the onClientColshapeLeave Handler uses removeEventHandler for itself (it removes itself from the event system) For some reason, when i leave, and walk back in, debugscript registers an error saying that onClientColshapeLeave is already handled by the same function, when this can't be possible because when i leave, it unregisters itself, and when i walk in, it registers itself. In a nut shell, i walk into a colshape, it registers onClientColshapeLeave for when i have left that colshape. If i leave and come back, it says its already been registered. Thats not possible if i left it (leaving it unregisters it). Is this common? This can only happen if the leave event does not trigger The element moving into and from the colshape is a vehicle.
-
Jealousy is a bitter taste, isn't it?. Your miss the idea of what a job is, a job is not always something you get paid for, my gain from this (or what you would call, pay) is the idea that others are learning. Please bomb a different thread with your off topic suggestions to the definition of what a word is.
-
No problem, my job here is to help teach others "how" to learn. Not, teach them what they want to learn. This helps users learn on their own, and saves them time asking questions when they can figure it out on their own by experience.
-
Please, Give that link a good skim. Twice even, i tell students to do this and the ones who do excel in the language.
-
In the script, the length of the array is needed. So # was used to reach that goal. aPos is an array. Array = {5, 5, 5} #String OR #array makes lua replace that value at its point in the script with the current size of the box of data its next to. (In C id just call it an area of memory) Since Lua is Dynamically typed, # can determine for it self what kind of data types are in the variable its next to. if h = string then return amount of bytes. if its an array, return amount of elements or objects. Arrays can be ever growing as well. Array[4] = 5 would now add [4] = 5 to the array as well. They can easily be deleted too by doing Array[4] = nil. Arrays are objects themselves too. In C++ you have classes, in Lua you can substitute that with Arrays. For more information http://lua-users.org/wiki/TutorialDirectory
-
Is there a way i can get the collision coordinates of interiors? The floor, walls. A table of every corner for example
-
You make as much sense as my 4 year old brother does, and so far he's winning this battle against you. You do exactly what you did to get the code, copy it into your client side script because all drawing engine functions are client side. (and if you still don't know what that means, then go to The Wiki and get learning.) If you want to make it in this forum, you had better read and learn. I don't just answer one question, i answer a couple hundred more you will post here in the next week just by telling you to research.
-
Is not what you said in the post, so i had assumed you stole. You said So it sounded more like you just copied it. You fool no one unless english isn't your first language. Research what onClientResourceStart does, you will see when it fires and why it is not needed here. It is usually used to initialize resources like GUI's UNLESS they are a per frame render. This is usually used for one time render, then set visible when used.
-
Did you copy this?
-
At point in time of interpretation, Attacker must be defined at line 7 at addEventHandler, you also have it defined as a local variable in noattack. There are two problems here 1. attacker is local to noattack, meaning even if it was defined at interpret time, it would still be undefined except to noattack when called with argument. 2. attacker must be defined as a constant for it to work where addEventHandler() is sitting at. You have it being defined somewhere else as a local argument variable, being SET BY onClientPlayerDamage, there for, chicken and the egg problem. Its undefined before the time addEventHandler is interpreted, and defined when the event is called. This is not possible unless attacker is defined by a constant value and is global. Remove attacker at Line 7 Argument 2 of addEventHandler and put getRootElement(). This fix will also remove the other listed errors (if my mind simulates correct)
-
The Wiki Also in The Wiki. I don't care what others links contain. Your missing my simple point. Look in the wiki for such ID's. Its plain and simple, some of the 8 year old's on here can do it themselves without "daddys" help. Your original post asks for where these ID's are. I would hope your reading skill problem is because English is not your first language. Otherwise, consider retaking Elementary English. Until then, search The Wiki, no one should have to search it for you unless your handicapped and they are near your computer. This forum will tell you where it is, but not do your projects for you. This is to teach you how do be more independent on completing resource projects or modification projects. If we didn't teach you, you would waste your time continuously asking simple questions with answers you could look up yourself. This helps you in the long run.
-
Use the wiki, -It will teach you where to find anything else. -It will save you from wasting your time posting questions on where it is. Its there for a reason, ill be watching for anymore threads like this.
-
Post your meta file, that error generally means, you have a syntax error in your meta file, or if a file you have specified doesn't exist (it will tell you this however) with syntax errors, you just get the error you have.
-
So your saying, you would like to replace parts that you would use to customize your vehicle? Spoilers, Rims ETC? To the post above, I do not believe it is possible, if you mean Both cars having the same id of part, but looking different. For example ID 555 = Batman spoiler, then the next car has 555 but its a fin like spoiler. Once you modify one, the game sets all objects using 555 to that object.
-
Look under the vehicle section in Client Functions within the wiki. For removing the vehicles, use destroyElement. Unless, you are using the map editor.