1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-07-11 23:37:45 +02:00
parent fc42940c2a
commit 5681966e78
2 changed files with 23 additions and 19 deletions

View file

@ -61,8 +61,16 @@ local function StartDynamiteFishing()
return QBCore.Functions.Notify('Du brauchst eine Rohrbombe!', 'error') return QBCore.Functions.Notify('Du brauchst eine Rohrbombe!', 'error')
end end
-- Wurf-Animation -- Wurf-Animation (KORRIGIERT)
lib.playAnim(Config.Animations.throw.dict, Config.Animations.throw.anim, Config.Animations.throw.flag) local throwDict = "anim@mp_fireworks"
local throwAnim = "place_firework_3_box"
RequestAnimDict(throwDict)
while not HasAnimDictLoaded(throwDict) do
Wait(10)
end
TaskPlayAnim(ped, throwDict, throwAnim, 8.0, -8.0, -1, 0, 0, false, false, false)
Wait(1500) Wait(1500)
ClearPedTasks(ped) ClearPedTasks(ped)
@ -73,8 +81,16 @@ local function StartDynamiteFishing()
return QBCore.Functions.Notify('Fehlgeschlagen!', 'error') return QBCore.Functions.Notify('Fehlgeschlagen!', 'error')
end end
-- Erfolgreich: Sammel-Animation -- Erfolgreich: Sammel-Animation (KORRIGIERT)
lib.playAnim(Config.Animations.collect.dict, Config.Animations.collect.anim, Config.Animations.collect.flag) local collectDict = "amb@world_human_stand_fishing@idle_a"
local collectAnim = "idle_c"
RequestAnimDict(collectDict)
while not HasAnimDictLoaded(collectDict) do
Wait(10)
end
TaskPlayAnim(ped, collectDict, collectAnim, 8.0, -8.0, -1, 1, 0, false, false, false)
QBCore.Functions.Progressbar('dynamite_fishing', 'Fische sammeln...', 5000, false, true, { QBCore.Functions.Progressbar('dynamite_fishing', 'Fische sammeln...', 5000, false, true, {
disableMovement = true, disableMovement = true,

View file

@ -1,27 +1,14 @@
Config = {} Config = {}
-- CORE SETTINGS -- CORE SETTINGS
Config.RequiredItem = 'neodymium_magnet' -- Item für Dynamite Fishing Config.RequiredItem = 'neodymium_magnet' -- Item für Dynamite Fishing
Config.Cooldown = 120 -- Cooldown in Sekunden Config.Cooldown = 120 -- Cooldown in Sekunden
-- ANIMATIONS
Config.Animations = {
throw = {
dict = 'mp_weapon_explosive',
anim = 'throw_b',
flag = 49
},
collect = {
dict = 'amb@world_human_stand_fishing@idle_a',
anim = 'idle_c',
flag = 1
}
}
-- GAMEPLAY -- GAMEPLAY
Config.SkillCheck = { Config.SkillCheck = {
difficulty = {'easy', 'easy', 'medium'}, -- OxLib Skill-Check difficulty = {'easy', 'easy', 'medium'}, -- OxLib Skill-Check
keys = {'w', 'a', 's', 'd'} keys = {'e', 'e', 'e', 'e'}
} }
Config.Explosion = { Config.Explosion = {
@ -41,6 +28,7 @@ Config.Police = {
priority = 2 priority = 2
} }
-- REWARDS -- REWARDS
Config.FishRewards = { Config.FishRewards = {
{ name = 'salmon', chance = 75, amount = {1, 3} }, { name = 'salmon', chance = 75, amount = {1, 3} },