
π»Installation
Dependencies
Installing the resource
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 = '' },
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)Last updated