HUD
Functions

GM: can Enter Passenger Seat

Called before a player enters a passenger seat. This is only called when a player is attempting to enter from outside. This is also called when switching seats.

Used in: VCMod Main addon.

Server GM:VC_canEnterPassengerSeat(Entity ply, Entity seat, Entity veh)

Arguments

1. Entity ply; Player
Player who is entering the seat.

2. Entity seat; Seat
The seat entity of the vehicle the player is about to enter.

3. Entity veh; Main vehicle
Vehicle of which the seats are attached to.

Returns

1. Boolean If it should allow player to enter the seat.

Example

hook.Add("VC_canEnterPassengerSeat", "VC_canEnterPassengerSeat", function(ply, seat, veh)
	print("Player :"..ply:Nick().." is attempting to enter : "..tostring(seat).." of entity "..veh:VC_getName()..".")
	local canenter = false
	return canenter
end)
Page modified:
...2020-02-09 12:31:43