Hallo,
Lua
function getSpeed_func( player, cmd )
local veh = getPedOccupiedVehicle( player )
local engineAcceleration = getVehicleHandling( veh , "engineAcceleration")
local maxVelocity = getVehicleHandling( veh , "maxVelocity")
outputChatBox( " " ..engineAcceleration.." " , player, 0,255,0)
outputChatBox( " "..maxVelocity.." ", player,0,255,0)
end
addCommandHandler("getspeed",getSpeed_func)
Hier kommt immer der Fehler "Error in Zeile 5. Table Value [ engineAcceleration ]
Ich danke im Vorraus.
mfg