HUD
Functions

Player: CD get Vehicle Data

Get all of data regarding this player and VCMods car dealers.

Used in: VCMod Main addon.

Server Entity Player:VC_CD_getVehicleData()

Returns

1. Table A table of players car dealer data, this includes purchased vehicles.

Example

concommand.Add("VC_CD_getVehicleData", function()
	local ply = player.GetAll()[1]
	local ent = ply:GetVehicle()

	if IsValid(ent) then
		local data = ply:VC_CD_getVehicleData()
		local entID = ent:VC_CD_getVehicleID()
		if data and data.Vehicles and data.Vehicles[entID] then
			print("Congratulations, you already own this vehicle.")
		else
			print("You do not own this vehicle.")
		end
	else
		print("Not in any vehicle.")
	end
end)
Page modified:
...2018-11-02 09:24:36