# Custom Fake ID Card

### ID Card System Integration

If you want to use this system **without any changes**, simply purchase and install the **0r-idcard** script — no additional configuration is required.

However, if you plan to integrate it with **your own ID card system**, you need to edit the functions located in `templates.lua` at **lines 848, 854, and 860**.

Here’s an example of one of these functions:

```lua
Templates.Action["Impersonate LSPD officer"] = function()
    Templates.Control["Controls"] = true
    Citizen.CreateThread(DisableCons)
    fakeIdCard(Config.PoliceJob, "job")
end
```

#### How to Integrate

Replace the `fakeIdCard(Config.PoliceJob, "job")` line with your own ID card system’s export or function.\
For example:

```lua
-- Example: Replace with your ID card system’s function or export
exports["example-idcard"].create("police")
```

Make sure to update **all three functions** at lines 848, 854, and 860 so they call your custom ID card handler instead of `fakeIdCard`.

***

> **Tip:** Always back up your `templates.lua` before making changes.\
> This makes it easy to revert if you encounter any issues.


---

# 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://docs.0resmon.org/0resmon/s4-resources/s4-flipper-hack-tool/custom-fake-id-card.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.
