Player Class
The LGF.Player module provides a set of methods for retrieving player information. The available methods are only usable in the client context.
---@module
LGF.PlayerAvailable Methods
LGF.Player:Ped
---@return number
LGF.Player:Ped()- Returns the
Entity Handleof the current player.
LGF.Player:Index
---@return number
LGF.Player:Index()- Returns the
server IDof the current player.
LGF.Player:PlayerId
---@return number
LGF.Player:PlayerId()- Returns the
player IDof the current player.
LGF.Player:Coords
---@return table
LGF.Player:Coords()- Returns the
coordinatesof the current player’s Ped. The coordinates are returned as a table withx,y, andzvalues.