 
        Erlkonig
Members- 
                Posts105
- 
                Joined
- 
                Last visited
Everything posted by Erlkonig
- 
	AddEvent on the serverside-script. addEvent("sportmod", true) addEvent("business", true) addEventHandel("sportmod", root, setVehicleVelocity(sportmod)) addEventHandel("business", root, setVehicleVelocity(business)) Of course you should to edit setVehicleVelocity function.
- 
	local serverTime = getRealTime() local minute = serverTime.minute theFirstTimer = setTimer(function() justOneFunction() eveyHourTimer = setTimer(justOneFunction, 60*60000, 0) end, (60 - minute) * 60000, 1) My problem in that fact the timer function was called a lot of time insted of one. I still can not resolve this problem. Have someone an idea? I tried to find more information about timers in MTA SA but still can not resolve that.
- 
	Try to do it yourself. If something will wrong, you can ask here about your issue.
- 
	https://wiki.multitheftauto.com/wiki/OnClientKey https://wiki.multitheftauto.com/wiki/TriggerServerEvent
- 
	function setVehicleVelocity(player, command) local veh = getPedOccupiedVehicle(player) if (not veh or veh == nil or getPedOccupiedVehicleSeat(player) ~= 0 ) then return end if (command == "sportmod") then setVehicleHandling(veh, "maxVelocity", 320) outputChatBox("Sport Mod Enabled", player, 255, 255, 0, true) elseif (command == "business") then setVehicleHandling(veh, "maxVelocity", 180) outputChatBox("Business Mod Enabled", player, 255, 255, 0, true) end end addCommandHandler("sportmod", setVehicleVelocity) addCommandHandler("business", setVehicleVelocity) addCommandHandler("gethandling", function(thePlayer) local veh = getPedOccupiedVehicle(thePlayer) local handling = getVehicleHandling(veh) outputChatBox("maxVelocity is "..handling.maxVelocity, thePlayer, 255, 255, 255, true) end)
- 
	It will not work as I said earlier. Edit getPedOccuipedVehicle(player) to getPedOccupiedVehicle(player).
- 
	Can you please copy-paste the code here?
- 
	It works like you write it. Max Velocity it's maximum of velocity, not acceleration. For check your vehicle handling you can use something like this: addCommandHandler("gethandling", function(thePlayer) local veh = getPedOccupiedVehicle(thePlayer) local handling = getVehicleHandling(veh) outputChatBox("maxVelocity is "..handling.maxVelocity, thePlayer, 255, 255, 255, true) end) I guess you need "engineAcceleration". Just I never used that stuff.
- 
	There no "getPedOccuipedVehicle", it should be "getPedOccupiedVehicle". Use /debugscript.
- 
	You should to give rights to this resource (edit ACL file or use standard admin panel). Like you gave the admin ACL rights for your user object. More information here: https://wiki.multitheftauto.com/index.php?title=Access_Control_List
- 
	Is it works when the player leaving the server before restart / shutdown? Did you check the value in database when the player has leaved the server?
- 
	Wow! It works really nice on android 10, I like it. Playing on my own server. But there some glithes with shooting, hope it will be fixed.
- 
	Yes, I do not remember this resource but it must be possible as I remember. Did you try to change it at client-side script?
- 
	Send the code then.
- 
	Try to use export function by the standart "parachute" resource. Try to call function 'onFire' when you want to open it.
- 
	I am still working on this, planing to do it with images, not standart gui. Just use attachTrailerToVehicle for this stuff. Russian spoiler:
- 
	Something like that? Use attachTrailerToVehicle for this.
- 
	Also use that for your request. Of course after first steps. https://wiki.multitheftauto.com/wiki/SetPlayerVoiceBroadcastTo https://wiki.multitheftauto.com/wiki/IsVoiceEnabled Also use that for your request. Of course after first steps. https://wiki.multitheftauto.com/wiki/SetPlayerVoiceBroadcastTo https://wiki.multitheftauto.com/wiki/IsVoiceEnabled Also use that for your request. Of course after first steps. https://wiki.multitheftauto.com/wiki/SetPlayerVoiceBroadcastTo https://wiki.multitheftauto.com/wiki/IsVoiceEnabled
- 
	What do you exactly mean? Had I understood you correctly? Parachute should be opened automatically after x seconds when player jumped off?
- 
	Thanks for answering!

 
					
						