HUD
Functions

Vehicle: set Vehicle Persistance Data

Sets the vehicles persistance data. This is perfect for use in car dealers to persist (save) VCMod vehicle data.

Used in: VCMod Main addon.

Server Entity Vehicle:VC_setVehiclePersistanceData(Table data)

Arguments

1. Table data; Persistance data
The table containing VCMod persistance data. This might include something else in the future, but for now it contains: DamagedObjects, Fuel %, Health %.

Example

	// This would be best to be used with your own car dealer
	hook.Add("VC_CD_spawnedVehicle", "CustomHookName", function(ply, ent, test)
		print(ply:Nick().." has spawned a vehicle entity: "..ent:VC_getName()..".")

		// This should be the data that is saved in your car dealer
		local data = {}

		// And then lets apply that data after vehicle has been spawned
		ent:VC_setVehiclePersistanceData(data)
	end)
Page modified:
...2018-11-02 09:24:42