Fake ID
Forged license cards that show exactly like real GR1M_Licenses cards, plus a police ID scanner.
Install: ensure GR1M_FakeID after GR1M_Licenses. Add the items in install/ox_inventory-items.lua (fake_id, fakeid_blank, id_scanner, fake_plate, temp_paint) to ox_inventory data/items.lua and copy install/images/*. Sell fakeid_blank in a black-market shop and give id_scanner to police however you hand out gear.
Framework: Qbox. Requires: GR1M_Licenses, ox_lib, ox_inventory, oxmysql.
Admin: /fakeidadmin (ace gr1mfakeid.admin or qbx group admin/god).
- Forgers: add, place with aim, model, scenario, on/off.
- Prices & scanner: quality tiers (price, catch %), cash or bank, blank card needed, work time, "issued by" text, scanner jobs, range, how long a shown card stays scannable.
- Card types: which GR1M_Licenses types can be forged (none picked = every civilian license).
- Cards made: every forgery, who made it, fake name/citizenid, times caught.
How it plugs into GR1M_Licenses
- Reads license types and departments from
gr1m_licenses_contentso the fake copies label, colour, item picture and the points line. - Shows the card by sending GR1M_Licenses' own
GR1M_Licenses:showCardclient event. - Listens to
GR1M_Licenses:cardShown(fired byGLCards.Show) so the scanner knows a real card was shown. - The fake citizenid exists nowhere, so
/licensecheckand Kartik MDT come back empty for it.
Scanner: reads the last card the nearest person (within range) showed in the last N minutes. Real cards read genuine. A fake fails if a hidden roll from its serial is under its tier's catch %, so the same card always gives the same answer.
Data: gr1m_fakeid_state (settings, forgers as JSON), gr1m_fakeid_cards (log).
Fake plates: fake_plate item. Use it next to a car you have keys for; the plate text swaps to a random or typed unregistered plate (player_vehicles.fakeplate + gr1m_fakeid_plates). The owner keeps their keys (GR1M_Carkeys reads fakeplate), the garage stores it under the real plate and hands the plate back, and Mech keeps the real plate via gr1mRealPlate. Key holders or scanner jobs take it off with ox_target ("Take off fake plates") or /removeplates and keep the plate. Exports: RealPlateFor(entity), RealPlateForFake(plate), OnStored(src, entity).
Temporary paint: temp_paint item. Use it next to a car you have keys for and pick a colour; it covers the whole car and washes off after the time set in /fakeidadmin. Key holders or scanner jobs can wash it off early with ox_target. The coat lives only in the entity state bag gr1mTempPaint (rgb, original, expires): GR1M_Garage saves original instead of the coat, and GR1M_Mech won't open its bay on a coated car, so the colour is never written to the car. A coat ending with nobody near the car washes off when a player next streams it in.
Shop coats (GR1M_SprayShop): server exports ApplyShopCoat(veh, props, original, info), StripCoat(veh), HasCoat(veh), CleanPaint(t); client export ApplyPaint(veh, props). A shop coat has kind = 'shop', props and original (color1, color2, paintType1, paintType2, pearlescentColor) and expires = false, so it never times out; GR1M_CarWash calls StripCoat. Anything that saves vehicle props must copy every key of original, not just the colours.
Forged licenses and vehicles: carrying a forged boat, pilot or helicopter card passes GR1M_Licenses' hard block (client/blocks.lua) the same as a real license.
Forged gun licenses: a forged Firearms Permit or Class 3 card in pockets passes GR1M_Licenses' weapon gates for that type (gate toggle "Forged cards count"). Class 3 is forgeable by default through FIConfig.DefaultCerts. The scanner and /licensecheck still expose it.
GR1M