-
Posts
2,973 -
Joined
-
Last visited
-
Days Won
3
Everything posted by 50p
-
Why don't you test it? Add outputDebugString or outputChatBox in each resource to see which one starts first, second, etc.
-
Yes that is in order if you use "start" and "stop". When you use "restart" command, it doesn't always stop your resource before it starts again. Sometimes new instance (not sure it it's completely new) of the same resource is started but the old one is still running for a split second. That's what I meant by asynchronously. This was the problem when I was making a patch for MTA to let scripters to add their own custom fonts for their scripts. MTA kept crashing because I tried to create a font that already existed (new instance was started and was trying to create a font but old one wasn't stopped previously so font was not removed).
-
Yes that is in order if you use "start" and "stop". When you use "restart" command, it doesn't always stop your resource before it starts again. Sometimes new instance (not sure it it's completely new) of the same resource is started but the old one is still running for a split second. That's what I meant by asynchronously. This was the problem when I was making a patch for MTA to let scripters to add their own custom fonts for their scripts. MTA kept crashing because I tried to create a font that already existed (new instance was started and was trying to create a font but old one wasn't stopped previously so font was not removed).
-
You can do whatever you want to... you can even use dxDrawLine3D to make boundaries, dxDrawImage to show points in corners or markers... Do whatever you think suites you.
-
You can do whatever you want to... you can even use dxDrawLine3D to make boundaries, dxDrawImage to show points in corners or markers... Do whatever you think suites you.
-
Sort of. You don't have to use getDistanceBetweenPoints2D because you can't rotate colshapes, so rectangle has always straight line along X and Y axis.
-
Sort of. You don't have to use getDistanceBetweenPoints2D because you can't rotate colshapes, so rectangle has always straight line along X and Y axis.
-
If i read good: from position 3 i need to get the x coord from position 4 i need to get the y coord and from 3 to (x coord) 1 i can calculate the depth and from 3 to 4 i can calculate the width Am i right? Of course you're wrong Read it again. TIP: A point has a location (x, y).
-
If i read good: from position 3 i need to get the x coord from position 4 i need to get the y coord and from 3 to (x coord) 1 i can calculate the depth and from 3 to 4 i can calculate the width Am i right? Of course you're wrong Read it again. TIP: A point has a location (x, y).
-
HandlingSetMaxVelocity is not supported. Use both setElementVelocity and setVehicleTurnVelocity. Don't expect us to write it for you though.
-
HandlingSetMaxVelocity is not supported. Use both setElementVelocity and setVehicleTurnVelocity. Don't expect us to write it for you though.
-
As you said #"3. left bottom" (south-west -> X, Y). Width is distance between #3 and #4, depth is distance between #3 and #1 (or the other way around). What do you want to calculate?
-
As you said #"3. left bottom" (south-west -> X, Y). Width is distance between #3 and #4, depth is distance between #3 and #1 (or the other way around). What do you want to calculate?
-
Resources are started asynchronously which means they don't have specific order. AFAIK, if you resources in your meta.xml they will start in the order specified in meta.xml but the order doesn't matter for client-side scripts.
-
Resources are started asynchronously which means they don't have specific order. AFAIK, if you resources in your meta.xml they will start in the order specified in meta.xml but the order doesn't matter for client-side scripts.
-
Are you being serious now or do you make a joke out of us? You must know the location (X,Y) where you want it to be... https://community.multitheftauto.com/index.php?p= ... ils&id=124 Width and depth depend on you.. weather you want it to be huge or small... You decide.
-
Are you being serious now or do you make a joke out of us? You must know the location (X,Y) where you want it to be... https://community.multitheftauto.com/index.php?p= ... ils&id=124 Width and depth depend on you.. weather you want it to be huge or small... You decide.
-
https://wiki.multitheftauto.com/wiki/CreateColRectangle
-
https://wiki.multitheftauto.com/wiki/CreateColRectangle
-
Have you just been busy with PHP maybe? Since you use the ";" tags at the end haha. No, I've been busy with other programming languages (C#, ActionScript and MAXScript) and it's just fine to use semicolons in Lua, so I don't care
-
Have you just been busy with PHP maybe? Since you use the ";" tags at the end haha. No, I've been busy with other programming languages (C#, ActionScript and MAXScript) and it's just fine to use semicolons in Lua, so I don't care
-
First thing you need to know is Max length of the health bar (when health is full). Then, you need to calculate what percentage of health player currently have (getElementHealth divided by max health(eg.100)). Once you get the percentage, multiply that number by max health bar length and you will get the length of the health bar to show. This is very simple math: maxBarLength = 100; maxHealth = 100; local percentage = getElementHealth( player ) / maxHealth; -- between 0 and 1 local currentBarLength = percentage * maxHealth; -- length of the bar to display
-
First thing you need to know is Max length of the health bar (when health is full). Then, you need to calculate what percentage of health player currently have (getElementHealth divided by max health(eg.100)). Once you get the percentage, multiply that number by max health bar length and you will get the length of the health bar to show. This is very simple math: maxBarLength = 100; maxHealth = 100; local percentage = getElementHealth( player ) / maxHealth; -- between 0 and 1 local currentBarLength = percentage * maxHealth; -- length of the bar to display
-
As far as I remember, getPlayerMapBoundingBox returns coords based on your radar not the F11 map. I might be wrong though.
-
The colour changes hasn't been implemented yet. Most of the options are not fully implemented. The options windows is there but I didn't want to make it very basic and use 1 setting for colours. I wanted to let users have "profiles" so they can share them here or swap between them when they work. I was hoping to fix a few bugs recently because I had some spare time on my hands but I worked on improving my 3D skills instead. I'll try to work on it once I get more time again.
