forked from Simnation/Main
Update cl_dynamitefishing.lua
This commit is contained in:
parent
7fdcc8610d
commit
a0621d7ef1
1 changed files with 2 additions and 6 deletions
|
@ -62,8 +62,8 @@ local function StartDynamiteFishing()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Wurf-Animation
|
-- Wurf-Animation
|
||||||
local throwDict = "weapons@projectile@"
|
local throwDict = "melee@unarmed@streamed_variations"
|
||||||
local throwAnim = "throw_m_fb"
|
local throwAnim = "plyr_takedown_front_slap"
|
||||||
|
|
||||||
RequestAnimDict(throwDict)
|
RequestAnimDict(throwDict)
|
||||||
while not HasAnimDictLoaded(throwDict) do
|
while not HasAnimDictLoaded(throwDict) do
|
||||||
|
@ -92,10 +92,6 @@ local function StartDynamiteFishing()
|
||||||
-- EXPLOSION DIREKT NACH ERFOLGREICHEM SKILL CHECK
|
-- EXPLOSION DIREKT NACH ERFOLGREICHEM SKILL CHECK
|
||||||
AddExplosion(explosionX, explosionY, explosionZ, Config.Explosion.type, Config.Explosion.volume, true, false, Config.Explosion.cameraShake)
|
AddExplosion(explosionX, explosionY, explosionZ, Config.Explosion.type, Config.Explosion.volume, true, false, Config.Explosion.cameraShake)
|
||||||
|
|
||||||
-- PS-DISPATCH ALERT mit dem Format aus alerts.lua
|
|
||||||
if Config.Police.enable and math.random(1, 100) <= Config.Police.alertChance then
|
|
||||||
DynamiteFishingAlert(coords)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Item entfernen (nach erfolgreicher Explosion)
|
-- Item entfernen (nach erfolgreicher Explosion)
|
||||||
TriggerServerEvent('dynamitefishing:removeItem')
|
TriggerServerEvent('dynamitefishing:removeItem')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue