forked from Simnation/Main
e
This commit is contained in:
parent
fc42940c2a
commit
5681966e78
2 changed files with 23 additions and 19 deletions
|
@ -61,8 +61,16 @@ local function StartDynamiteFishing()
|
|||
return QBCore.Functions.Notify('Du brauchst eine Rohrbombe!', 'error')
|
||||
end
|
||||
|
||||
-- Wurf-Animation
|
||||
lib.playAnim(Config.Animations.throw.dict, Config.Animations.throw.anim, Config.Animations.throw.flag)
|
||||
-- Wurf-Animation (KORRIGIERT)
|
||||
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)
|
||||
ClearPedTasks(ped)
|
||||
|
||||
|
@ -73,8 +81,16 @@ local function StartDynamiteFishing()
|
|||
return QBCore.Functions.Notify('Fehlgeschlagen!', 'error')
|
||||
end
|
||||
|
||||
-- Erfolgreich: Sammel-Animation
|
||||
lib.playAnim(Config.Animations.collect.dict, Config.Animations.collect.anim, Config.Animations.collect.flag)
|
||||
-- Erfolgreich: Sammel-Animation (KORRIGIERT)
|
||||
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, {
|
||||
disableMovement = true,
|
||||
|
|
|
@ -1,27 +1,14 @@
|
|||
|
||||
Config = {}
|
||||
|
||||
-- CORE SETTINGS
|
||||
Config.RequiredItem = 'neodymium_magnet' -- Item für Dynamite Fishing
|
||||
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
|
||||
Config.SkillCheck = {
|
||||
difficulty = {'easy', 'easy', 'medium'}, -- OxLib Skill-Check
|
||||
keys = {'w', 'a', 's', 'd'}
|
||||
keys = {'e', 'e', 'e', 'e'}
|
||||
}
|
||||
|
||||
Config.Explosion = {
|
||||
|
@ -41,6 +28,7 @@ Config.Police = {
|
|||
priority = 2
|
||||
}
|
||||
|
||||
|
||||
-- REWARDS
|
||||
Config.FishRewards = {
|
||||
{ name = 'salmon', chance = 75, amount = {1, 3} },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue