
💻Installation
Dependencies
Installing the resource
Make sure you have the dependencies listed above installed.
Extract the contents of the archive to your resources folder.
Add item to shared items.lua
registerkey1 = { name = 'registerkey1', label = 'Key', weight = 100, type = 'item', image = 'key.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = '' }, registerkey2 = { name = 'registerkey2', label = 'Key', weight = 100, type = 'item', image = 'key.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = '' }, srecuritycard = { name = 'srecuritycard', label = 'Security Card', weight = 100, type = 'item', image = 'srecuritycard.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
If you are using qb-shops and want to animate the Default NPC handsup, then add this to qb-shops/client/client.lua :
local function loadAnimDict(dict)
while (not HasAnimDictLoaded(dict)) do
RequestAnimDict(dict)
Wait(5)
end
end
RegisterNetEvent("zat-storerobbery:client:ToggleNPCAnim", function()
local animDict = "missminuteman_1ig_2"
local anim = "handsup_base"
loadAnimDict("missminuteman_1ig_2")
for k, v in pairs(Config.Locations) do
if #(GetEntityCoords(PlayerPedId())-vector3(v["coords"].x, v["coords"].y, v["coords"].z)) <= 20.0 then
if IsEntityPlayingAnim(ShopPed[k], animDict, anim, 3) then
ClearPedTasks(ShopPed[k])
TaskStartScenarioInPlace(ShopPed[k], v["scenario"], 0, true)
else
ClearPedTasks(ShopPed[k])
TaskPlayAnim(ShopPed[k], animDict, anim, 8.0, 8.0, -1, 50, 0, false, false, false)
end
end
end
end)
If you want the alarm sound and sound effects :
Download interact-sound from Github.
Addthe .ogg files inside [sounds] into interact-sound\client\html\sounds.
Add this to your inventory js :
else if (itemData.name == "srecuritycard") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html("<p> Code: " + itemData.info.code + "</p>");
}
Doorlocks :
QB : add the doorlock.lua into qb-doorlock\configs
OX : add the SQL into ox_doorlock TABLE
IMPORTANT : Change the IDs to avoid duplicated door IDS
Ensure zat-storerobbery.
If you are using GABZ 247Mlo then :
ensure zat - ltddoors
If you are using FM SUPERMARKET Mlo then :
ensure zat-mfsupermaketdoors
zat-ltddoors
If you are not using any Mlo then :
ensure zat - ltddoors
ensure zat-247doors
Last updated