-
Posts
2,753 -
Joined
-
Last visited
-
Days Won
18
Everything posted by Captain Cody
-
After I read through it, Set Vehicle turn Velocity already has everything you need setVehicleTurnVelocity ( vehicle, -X Amount, -Y Amount, -Z Amount ) It is already relative to the vehicle.
-
Make sure to include that lill (Copyright Simple01) or he will sue for all you own.
-
https://wiki.multitheftauto.com/wiki/GetElementRotation Outputs the vehicles rotation, allowing you to set rotations relative to the vehicles rotation.
-
If you do the function correctly it won't hurt CPU, onVehicleDamage, then have the function receive current health, if it is below 400 then continue else end.
-
Is there anyway you can can get the cpu graphs of the actual server box? Although performance browser shows the scripts usage, there could be something else on the host box eatting up the CPU. Or it could be memory or something such as that.
-
Well that certainly works to, I really need to stop commenting at 1-7 am
-
Oh yes, forgot about that "posted both of those at 1 am wasn't exactly thinking about that atm, when the vehicle health drops below a certain point, use repair vehicle, as to prevent it from exploding, yet still allowing it to be hit, rammed etc without repairing every time.
-
--- This --- When missiles hit vehicle the vehicle does not explode that instant, instead there is a small delay, if you use fix vehicle as soon as the vehicle gets damaged, then the vehicle won't go boom.
-
Who sell Gamemode MTA DayZ? With best features?
Captain Cody replied to daffabahy's topic in Resources
You speaking of his double post, or another rule he broke? -
Well [2016-02-14 16:38:42] WARNING: missiontimer\missiontimer_client.lua:45: Bad argument @ 'triggerEvent' [Expected element at argument 2] your triggerEvent format is wrong https://wiki.multitheftauto.com/wiki/TriggerEvent fix it. [2016-02-14 16:46:40] WARNING: test\timer2.lua:17: Bad argument @ 'destroyElement' [Expected element at argument 1] - It's bypassing the if ( test ) then and just going straight to it. Try this if (test) then destroyElement(test) else end end As for [2016-02-14 16:38:37] ERROR: missiontimer\missiontimer_client.lua:112: attempt to index field '?' (a nil value) I'm not sure.
-
Oh sorry replace if ( test ) then destroyElement(test) end end with if test then destroyElement(test) end end
-
It's your host then, although there is not high CPU usage it is still throttling the CPU, causing the lag.
-
onClientVehicleDamage fixVehicle ( vehicleValue ) As soon as it gets damaged use fixVehicle, it will stop it from blowing up and what not.
-
45: Trigger Event format is wrong https://wiki.multitheftauto.com/wiki/TriggerEvent 112: One of the values in there is a nil value, meaning it does not exist, not sure which /I'm tired../ test\timer2.lua:17: Bad argument @ 'destroyElement' [Expected element at argument 1] -- Code not posted, not sure of the issue --
-
You posted the wrong wrong section of code there...triggerEvent is no where in the section you posted, need the section that the debugscript is actually talking about.
-
Do the players pings fluctuate?
-
function loginMEIN (username,password,mode) if mode == "login" then if logIn( source, username, password ) then outputChatBox( "You've logged in successfully!", source, 231, 217, 176) else outputChatBox( "There was an error in loggining in. There might be no account on that name or you have put wrong password!", source, 231, 217, 176) end elseif mode == "register" then if addAccount( username, password ) then outputChatBox( "You've registered successfully!", source,231,217, 176) else outputChatBox( "There was an error in registering. There might be account on the same name!", source,255,217, 176) end end end addEvent( "sumbitLogin", true ) addEventHandler( "sumbitLogin", rootElement, loginMEIN ) Try that And use [lua] instead of
-
Try adding the server side script before the client side script in the meta file if it is not already.
-
#1 To Login - logIn(source, account, password) To register - addAccount(username, password) #2 Trying using debugscript3
-
/login /register
-
There's a file called vehicle.txd that contains all the base textures for the vehicles.
-
Replace source with client in the server side script and remove source from ( ) in the server side. And yes I forgot about that detail. But it would probably be better to put take money server side as to not only take money client side but both client and server side. But you would need to remove the take money from client side.
-
noo, what I am saying is replace the GUIEditor.button[1] with Button1. Not because of what you typed, but because the default variables some times screw up.
-
Replace the GUIEditor.button[1] with Button1 and try, sometimes the default button names messes it up. "replace it both in the code displaced here, and in the actual gui code.
