Get all of data regarding this player and VCMods car dealers.
Used in: VCMod Main addon.
Server Entity Player:VC_CD_getVehicleData()
1. Table A table of players car dealer data, this includes purchased vehicles.
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)