# SERVER COMMON REPLACEMENT

## Server Replacement Common (Still To Be Updated)

#### Player Functions

```lua
-- Return All Players Connected (Name and ID)
exports.LGF_Utility:GetPlayers()

-- Return Number of Players Online
exports.LGF_Utility:GetPlayersCount()

-- Kick Specific Player
exports.LGF_Utility:KickPlayer(id, reason)

-- Delete Character Identifier By ID
exports.LGF_Utility:DeletePlayerCharacter(id)

-- Return if Player Is Online (True) or (False)
exports.LGF_Utility:GetPlayerOnline(id)

-- Get Player Data by ID (Return Player Data Saved In Database)
exports.LGF_Utility:GetDataPlayer(id)

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://legacy-script.gitbook.io/legacy-script/lgf-utility/common/server-common-replacement.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
