#
Vehicle
#
Get the speed of the vehicle
SHARED
SV_GetSpeed returns the vehicle speed in km/h.
You should use the cached version if you are going to call it often (like in a draw hook).
if veh:SV_GetSpeed() < 100 then
-- The vehicle speed is less than 100 km/h.
end
if veh:SV_GetCachedSpeed() < 100 then
-- The vehicle speed is less than 100 km/h.
-- This cached value is updated once every 0.2 second.
end