Skip to content

Commit

Permalink
refactor(client): release anims
Browse files Browse the repository at this point in the history
  • Loading branch information
solareon committed Jun 23, 2024
1 parent 6fe6695 commit b7dcfde
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions client/powerstation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ RegisterNetEvent('thermite:UseThermite', function()
if dist < 1.5 then
if CurrentCops >= config.minThermitePolice then
if not powerStationConfig[closestStation].hit then
lib.requestAnimDict('weapon@w_sp_jerrycan')
TaskPlayAnim(cache.ped, 'weapon@w_sp_jerrycan', 'fire', 3.0, 3.9, 180, 49, 0, false, false, false)
lib.playAnim(cache.ped, 'weapon@w_sp_jerrycan', 'fire', 3.0, 3.9, 180, 49, 0, false, false, false)
SetNuiFocus(true, true)
SendNUIMessage({
action = 'openThermite',
Expand All @@ -65,8 +64,7 @@ RegisterNetEvent('thermite:UseThermite', function()
TriggerServerEvent('evidence:server:CreateFingerDrop', pos)
if CurrentCops >= config.minThermitePolice then
currentGate = CurrentThermiteGate
lib.requestAnimDict('weapon@w_sp_jerrycan')
TaskPlayAnim(cache.ped, 'weapon@w_sp_jerrycan', 'fire', 3.0, 3.9, -1, 49, 0, false, false, false)
lib.playAnim(cache.ped, 'weapon@w_sp_jerrycan', 'fire', 3.0, 3.9, -1, 49, 0, false, false, false)
SetNuiFocus(true, true)
SendNUIMessage({
action = 'openThermite',
Expand Down

0 comments on commit b7dcfde

Please sign in to comment.