> For the complete documentation index, see [llms.txt](https://igris-script.gitbook.io/igris-script/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://igris-script.gitbook.io/igris-script/free-script/igris-ragpoint.md).

# Igris Ragpoint

<figure><img src="https://2862342791-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFnkzyjlqOP6UGw1GyN62%2Fuploads%2F8ZudwKgscXj5kckLua0Q%2Fragpoint.png?alt=media&amp;token=8b5ab00f-7ef4-45d7-8a58-d57311420ca2" alt=""><figcaption></figcaption></figure>

A RedM resource that lets players toggle three actions: ragdoll, finger pointing, and hands up. Press a key once to enable its action, then press the same key again to disable it.

### Compatibility

This resource is standalone: it does not use any VORP exports, events, or dependencies. It requires no VORP installation, database, or additional framework. It can be installed on a RedM server running VORP, another framework, or no framework at all. Key binding or animation conflicts with other resources may still occur. This is a RedM resource, not a FiveM resource.

### Installation

1. Extract the `igris_ragpoint` folder into your server's `resources` folder.
2. Add the following line to `server.cfg`:

```cfg
ensure igris_ragpoint
```

3. Start your server, or enter `ensure igris_ragpoint` in the server console.

The resource folder must directly contain `fxmanifest.lua`, `config.lua`, `client.lua`, `server.lua`, and this README. Avoid a nested `igris_ragpoint/igris_ragpoint` folder structure.

### Controls and customization

The default bindings listed in the supplied configuration are:

| Action                | Default key | RedM control |
| --------------------- | ----------- | ------------ |
| Ragdoll / get up      | X           | `0x8CC9CD42` |
| Start / stop pointing | L           | `0x80F28E95` |
| Raise / lower hands   | B           | `0x4CC0E2FE` |

To change the controls, open `config.lua`:

```lua
Config.Keys = {
    Ragdoll = 0x8CC9CD42, -- X
    Point   = 0x80F28E95, -- L
    HandsUp = 0x4CC0E2FE, -- B
}
```

Replace an action's hexadecimal value with the desired RedM control hash. Do not enter a letter such as `"X"`, a Windows keyboard code, or a FiveM control number: the script expects a RedM control hash. The comments `-- X`, `-- L`, and `-- B` do not change the bindings.

For example, to swap X and L between ragdoll and pointing, use:

```lua
Config.Keys = {
    Ragdoll = 0x80F28E95, -- L
    Point   = 0x8CC9CD42, -- X
    HandsUp = 0x4CC0E2FE, -- B
}
```

Choose a different control for each action, save the file, then run the following command in the server console:

```cfg
restart igris_ragpoint
```

This configuration applies to all players. The script reads game controls, so the actual keys may depend on each player's settings. It does not provide an individual key binding menu. Also check the controls used by other resources on your server.
