HUD
Functions

VC_CD get Vehicle I D From Data

Returns vehicles car dealer ID. It consists of model + name + skin.

Used in: VCMod Main addon.

Shared VC_CD_getVehicleIDFromData(String mdl, String name, String skin)

Arguments

1. String mdl; Model
Vehicles model.

2. String name; Name
Vehicles name.

3. String skin; Skin
Vehicles skin.

Returns

1. String The vehicles car dealer ID.

Example

concommand.Add("vehicle_cd_get_id_from_data", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		local mdl, name, skin = ent:GetModel(), ent:VC_GetName(), ent:GetSkin()
		print("Vehicles you are currently looking at car dealers ID is: '"..VC_CD_getVehicleIDFromData(mdl, name, skin).."'.")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:36