HUD
Functions

Vehicle: get Speed Km H

Gets vehicles speed in km/h.

Used in: VCMod Main, VCMod ELS addons.

Shared Entity Vehicle:VC_getSpeedKmH()

Returns

1. Integer Speed converted from vehicles speed to km/h.

Example

concommand.Add("VC_VehicleSpeedKMH", function(ply)
if !IsValid(ply) then print("Only for players.") return end
	local ent = ply:GetVehicle()
	if IsValid(ent) then
		print("Current vehicle speed is: "..ent:VC_getSpeedKmH().." km/h.")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:39