Jump to content

Sterchit

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Sterchit

  1. Idea with markers it's not so good as for me. So, edit :race/race_server.lua Find: -- launchRace function unfreezePlayerWhenReady(player) if not isValidPlayer(player) then outputDebug( 'MISC', 'unfreezePlayerWhenReady: not isValidPlayer(player)' ) return end if isPlayerNotReady(player) then outputDebug( 'MISC', 'unfreezePlayerWhenReady: isPlayerNotReady(player) for ' .. tostring(getPlayerName(player)) ) TimerManager.createTimerFor("map",player):setTimer( unfreezePlayerWhenReady, 500, 1, player ) else RaceMode.playerUnfreeze(player) outputDebug( 'MISC', 'unfreezePlayerWhenReady: setElementFrozen false for ' .. tostring(getPlayerName(player)) ) end end Under RaceMode.playerUnfreeze(player) Add your code local theVehicle = getPedOccupiedVehicle(source) if theVehicle then outputChatBox ("Tuned!") setVehicleHandling(theVehicle, "engineAcceleration", 35.0) end If you want to do this only for you then do: if getPlayerSerial(player) == "twoj_serial" then local theVehicle = getPedOccupiedVehicle(source) if theVehicle then outputChatBox ("Tuned!") setVehicleHandling(theVehicle, "engineAcceleration", 35.0) end end
×
×
  • Create New...