How it works
There are two tablets.Stock tablet
awoken_tablet. Opens the tablet and runs every app that is not locked behind a card.Modded tablet
awoken_tablet_sd. The same tablet with a card reader fitted. Use opens it as normal. Right-click it and pick SD Cards to open its slots.- It can be robbed off a body or seized on arrest, tablet and all.
- It can be sold, traded or planted.
- Installed cards weigh nothing extra, so unlocking an app never costs carry weight.
- The number of slots is a hard cap on how many locked apps one player can run at once.
Card apps belong to the tablet the cards are in, not to the player. Someone carrying a stock tablet and a modded one sees the card apps only when they open the modded one.
Setup
1
Add the modded tablet item
Paste the
awoken_tablet_sd entry from install/ox_inventory/items.lua into your ox_inventory/data/items.lua, alongside the stock tablet.Keep its buttons block. That is what puts SD Cards on the right-click menu, and without it there is no way to open the slots.2
Copy the image
Copy
install/ox_inventory/images/awoken_tablet_sd.png into ox_inventory/web/images/.3
Add one item per card
Each app that uses a card tells you the item name it expects. Add each one as an ordinary item, using the You do not list cards anywhere in the tablet’s config. An app registering is what makes its card insertable.
sd_example entry in the same file as a template, and supply your own image.ox_inventory/data/items.lua
icon field. It shows on Awoken Inventory. Stock ox_inventory ignores it and the button simply appears without an icon.
Configuration
config/config.lua
The install point
Players pay to have a reader fitted atinstall.coords. It uses ox_target when you have it running, and a marker with an [E] prompt when you do not.
Police cannot see or use it by default. Hidden means no blip, no target option and no prompt, and the server refuses the install for those jobs too. Put your server’s own job names in hiddenFrom, or empty the list to let everyone find it.
Handing out readers yourself
To make the upgrade a heist reward or a black market purchase instead, turn the built-in point off and call the export from your own script:Turning SD cards off
config/config.lua