HUD
Functions

Vehicle: get Players

Gets total amount of players that are currently inside the vehicle.

Used in: VCMod Main addon.

Server Entity Vehicle:VC_getPlayers()

Returns

1. Table A table containing a list of players that are in seats.

Example

concommand.Add("vehicle_getplayerlist", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		print("There are, currently, "..table.Count(ent:VC_getPlayers()).." players inside the car.")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:38