-
Posts
589 -
Joined
-
Last visited
Posts posted by mjau
-
-
Haha, when you cant even get leaked scripts to work damien i doubt there is any chance for your RPG.
Good luck tho. And guess someone can lock this topic as this is a stolen resource from WSS:RPG. I can provide proof if needed.
-
local vch = getElementHealth ( getElementData(player,"Car")
Returns false.
Im not sure what you are trying to do but getElementData returns a string with data. while getElementHealth needs a vehicle element to work.
-
He said replace setVehicleHandling with setModelHandling.
I know, You can see i quote that, I was just explaining ..
Exactly what were you explaining, i use this in my server and it works perfectly fine.
This makes every car of the model 411 get the handling
function infernus() local veh = 411 setModelHandling(veh, "mass", 1500) setModelHandling(veh, "turnMass", 4000) setModelHandling(veh, "dragCoeff", 2.2) setModelHandling(veh, "centerOfMass", { 0, 0.3, -0.15 } ) setModelHandling(veh, "percentSubmerged", 85) setModelHandling(veh, "tractionMultiplier", 0.7) setModelHandling(veh, "tractionLoss", 0.9) setModelHandling(veh, "tractionBias", 0.52) setModelHandling(veh, "numberOfGears", 5) setModelHandling(veh, "maxVelocity", 200) setModelHandling(veh, "engineAcceleration", 22) setModelHandling(veh, "engineInertia", 5) setModelHandling(veh, "driveType", "awd") setModelHandling(veh, "engineType", "petrol") setModelHandling(veh, "brakeDeceleration", 6) setModelHandling(veh, "brakeBias", 0.55) end addEventHandler ("onResourceStart", getResourceRootElement(getThisResource()), infernus)
If you want it to only change for a few cars u use setVehicleHandling and the first argument is the vehicle element, you can create the vehicle in the script like veh = createVehicle(...)
-
Replace setVehicleHandling with
-
Hallo
Du må opprette en fil, for eksempel "server.lua" hot. I denne filen sette LUA-koden. I meta.xml din kan du sette den som "src" er navnet på den filen.
så:
script.lua inkluderer:
local spawnX, spawnY, spawnZ = 1959.55, -1714.46, 10 function joinHandler() spawnPlayer(source, spawnX, spawnY, spawnZ) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox(" Welcome to My Server ", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler)
Og meta.xml inkluderer:
<meta> <info author="YourName" type="gamemode" name="My Server" description="My first MTA server" /> <script src="server.lua" /> </meta>
Beklager for min norsk er dette oversatt fra nederlandsk til norsk.
Hvorfor er du her da. oversettere gjør mange feil og noe du skriver kan forvirre. hold deg til den nederlandske tråden og la de norske få ha sin her.
English: Why are you even here then ?, translators make many mistakes and something you write might confuse the person that needs help. stay at your native language forum and let the norwegians/swedish and danish people have their.
-
Well then ofc i belive you could use timers, so the first timer trigger when the player presses W and after he have held it for lets say 3 sec it changes to higher rpm sound and so it goes.
And just to tell you, everything on youtube isnt real, editing a video to change the vehicle sound isnt hard.
-
-
Im not 100 percent sure, but i dont belive this is possible. unless there is some way to detect the RPM of the engine.
-
Some example showing what you are able to do would be nice.
-
function Changemap (thePlayer, cmd, goTo) exports.mapmanager:changeGamemodeMap (goTo) outputChatBox(getPlayerName(thePlayer).." changed the map!") end addCommandHandler("goto", Changemap)
Im not sure myself as i never worked with the mapmanager, but i belive this is right.
Ingame do /goto mapname
-
The first error is that u are trying to use thePlayer parameter but u never passed it from the server side,
Second, are u sure that error is on the client side ?
-
Well, i dont think anyone will buy that, since they can buy a gridlist menu which i belive works much better.
-
Uhm, i think you are asking too much from a scripter, most people here use paypal, and at the same time u want the scripter to be german or french. i actually dont think anyone here fits those requirements.
-
Uhm, now it counts the right way, but dont start at 60 when i do command it varies.
-
Noone knows how to use this function ?
-
Wiki says Returns an integer of the unbanning time in the format of seconds from the year 1970. Use in conjunction with getRealTime in order to retrieve detailed information.
And i tried without all that stuff, and it shows me a hell lot of numbers
-
Well you were on something, it showed -60 seconds
-
Ah, lemme try switching those 2. will see if it works
-
Lo, im trying to show the time left of an ban in seconds, but whenever i run the code it displays 0, even tho it is 60 secs left
function test() local ban = addBan("123.123.123.123", nil, nil, rootElement, "nab", 60) local timeLeft = getUnbanTime(ban) - getRealTime().timestamp local dateLeft = getRealTime(timeLeft) outputChatBox(tostring(dateLeft.second)) end addCommandHandler("testja", test)
Any help ?, btw no hard math expresions or anything, i suck at math
-
-
-
This can be made by lua, the map editor is made by lua. so you are allowed to try
If you make it, show mta team it, if its good enough it will be added
-
I can maybe help you with some things if you want
Like car races ? ( just racing agaibst other people)
Or other things ;-p
For free ofc
Im sorry but i can handle everything else myself, ofcourse you are allowed to contribute with something but the script i really need i told about in the main post
-
Bump, really is noone interested in this ?
The Best OS
in General
Posted
Ubuntu, simply because its the only one i have been using. And i know alot of other people using it too. However if you dont have any experience running linux at all i suggest you read a bit about it. Can be a bit complicated at first.