HUD
Functions

GM: CD can Test Drive

Called when a person attempts to use the test drive function of the car dealer.

Used in: VCMod Main addon.

Server GM:VC_CD_canTestDrive(Entity ply, Entity npc, String id)

Arguments

1. Entity ply; Player
Player who is doing it.

2. Entity npc; Car Dealer
The car dealer NPC.

3. String id; Vehicle ID
The VCMod ID for this specific vehicle.

Returns

1. Boolean If it should allow player to pick do this or not.

Example

hook.Add("VC_CD_canTestDrive", "VC_CD_canTestDrive", function(ply, npc, id)
	print("Player :"..ply:Nick().." is attempting to test drive, not allowing.")
	local can = false
	return can
end)
Page modified:
...2018-11-02 09:24:35