HUD
Functions

VC_CD getvehicle Data From I D

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

Used in: VCMod Main addon.

Shared VC_CD_getvehicleDataFromID(String id)

Arguments

1. String id; Vehicle ID
VCMod car dealers vehicle ID.

Returns

1. String Vehicles model.

2. String Vehicles name.

3. String Vehicles skin.

Example

concommand.Add("vehicle_cd_get_data_from_id", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		local id = ent:VC_CD_getVehicleID()
		print("Vehicles you are currently looking at car dealers ID is: '"..VC_CD_getvehicleDataFromID(id).."'.")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:36