API (Events & Callbacks)
Server events
automafija:tryStealVehicle(plate, modelName)— store a vehicle into stolen pool (job‑restricted)automafija:returnVehicle(plate)— return toowned_vehiclesand spawn to callerautomafija:deleteVehicleForCash(plate)— delete from stolen pool and pay cashautomafija:getStolenVehicles()— open NUI garage with listautomafija:buyNpc(npcId)— buy/unlock a drop‑off NPC for the job
Client events
automafija:receiveStolenVehicles(vehicles)— opens NUI garageautomafija:spawnReturnedVehicle(vehiclePropsJson, plate)— spawns vehicle to player and gives keys (if enabled)automafija:closeGarage()— close NUIautomafija:client:startCoding(meta)— starts the Vehicle Coding minigame (client‑side)
Tablet app messaging
App id:
Config.Identifier(defaultautomafija-app)When opened → server callback populates items; internal messages:
SET_CARS(items array)