HUD
Functions

Vehicle: clear Seats

Kicks out all of the players from the vehicle.

Used in: VCMod Main addon.

Server Entity Vehicle:VC_clearSeats()

Example

concommand.Add("vehicle_clearseats", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		ent:VC_clearSeats()
		print("All players have been kicked out of the vehicle, too bad.")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:36