Back to TPG

TPG.Vehicles.EasyEntry

S🏷️ Vehicles

Part of TPG namespace

TPG.Vehicles.EasyEntry(ply)
View on GitHub|gamemode/systems/sv_vehicles.lua:58-105
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Teleport a player into the nearest seat they own, after a short delay. Looks at what the player is aiming at and requires it to be owned by them (this is an ownership check on the eye-trace target, not on the seat itself -- aim at any prop you own, not necessarily the vehicle). Then finds the closest tracked seat within TPG.Config.easyEntryRange that they also own, warns them, and after TPG.Config.easyEntryDelay seconds enters them into it, provided they have not moved more than 100 units from where they were standing when the timer started. Bound from core/sv_commands.lua's easy-entry command.

Parameters

NameTypeDescription
plyPlayer

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.