# Getting started

### Function identification

Before all functions and hooks you will find small symbols. They describe what kind of entry it is and on which side it runs.

* 🟦 **Serverside**
* 🟧 **Clientside**
* 🟦🟧**Shared**
* **🪝🟧/🟦  Hook**

**Example**

```
serversidefunction(string name)
```

#### Metatable prefixes

Some functions contain a prefix in front of the function name.

**{P}** - Function belongs to the player metatable and must be called on a player.

**{LS}** - Function belongs to the lightsaber weapon (lightsaber\_plus) and must be called on the weapon entity.

**Examples**

```
{P}:LSP_getPlayer()
{LS}:LSP_isLightsaberActive()
```

#### Parameter types

To make parameters easier to understand, their types are written directly in the function signature.

| Type             | Declaration     | Description                     |
| ---------------- | --------------- | ------------------------------- |
| string           | string          | Normal text value (e.g. "text") |
| integer / number | integer, number | Whole numbers                   |
| float            | float           | Numbers with decimal places     |
| player           | PLAYER          | Player metatable                |
| table            | table           | Lua table                       |
| vector           | vector          | Vector table                    |
| angle            | angle           | Angle table                     |


---

# 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://symliaas-scripts.gitbook.io/symscripts/garrys-mod/getting-started.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.
