HUD
Functions

GM: can Enter Drive By

Called when a person attempts to use drive by.

Used in: VCMod Main addon.

Server GM:VC_canEnterDriveBy(Entity ply, Entity seat, Entity ent)

Arguments

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

2. Entity seat; Seat
Passenger seat that the player is in.

3. Entity ent; Entity
The main vehicle entity.

Returns

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

Example

hook.Add("VC_canEnterDriveBy", "VC_canEnterDriveBy", function(ply, seat, ent)
	print("Player :"..ply:Nick().." is attempting to go into drive by mode, not allowing.")
	local can = false
	return can
end)
Page modified:
...2018-11-02 09:24:34