Jump to content

Liquidz

Members
  • Posts

    4
  • Joined

  • Last visited

Liquidz's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Ok thanks i will try it Thank you ^^
  2. ah ok thanks^^ bindKey("m", "down", function(key, keyState) if key ~= "m" or keyState ~= "down" then return end if not isPedInVehicle(localPlayer) then return end local vehicle = getPedOccupiedVehicle(localPlayer) if localPlayer ~= getVehicleOccupant(vehicle, 0) then return end if engineStarting then return end if getVehicleEngineState(vehicle) then setVehicleEngineState(vehicle, false) else if getElementData(vehicle, "tank") > 0.0 then playSound('engine.wav') engineStarting = true setTimer(startEngine, 1500, 1, vehicle) else playSound('engineNoFuel.wav') end end end ) When i make this server-side now? How is the easiest way to play the sounds?
  3. Could it be that the client-side setVehicleEngineState(vehicle) only set the Engine client-side and that server-side the same vehicle has the engine running?
  4. Hello Community! I have a little problem with my Vehiclesystem... I am setting the vehicleEngine Client-side with a bindKey-function. Now i created this function server-side to do some other stuff but he always return true? function vehicleTimer() for i,v in ipairs(getElementsByType("vehicle")) do local speed = (function(velX, velY, velZ) return ((velX^2 + velY^2 + velZ^2)^(0.5)) * 180 end)(getElementVelocity(v)) local state = getVehicleEngineState(v) if state then -- state is always true end end end Although my vehicle engine is turned off he always return true... Can somebody help me please?
×
×
  • Create New...