HUD
Functions

GM: CD spawned Vehicle

Called when a player spawns a vehicle using the car dealer.

Used in: VCMod Main addon.

Server GM:VC_CD_spawnedVehicle(Entity ply, Entity ent, Boolean test)

Arguments

1. Entity ply; Player
Player who used the car dealer to spawn this vehicle.

2. Entity ent; Vehicle
The unlucky vehicle.

3. Boolean test; Test drive
If the vehicle is spawned due to test drive.

Example

hook.Add("VC_CD_spawnedVehicle", "CustomHookName", function(ply, ent, test)
	print(ply:Nick().." has spawned a vehicle entity: "..ent:VC_getName()..".")
end)
Page modified:
...2018-11-02 09:24:36