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:
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:
-- 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.
Last updated