1
0
Fork 0
forked from Simnation/Main

Update client.lua

This commit is contained in:
Nordi98 2025-07-11 22:25:34 +02:00
parent 36021d9578
commit b8250677e2

View file

@ -114,7 +114,7 @@ local function StartMagnetFishingProcess(selectedMagnet, waterLoc)
magnetFishing = true
-- Create magnet rope prop
local model = `prop_cs_rope_tie_01` -- Besseres Prop für ein Seil mit Magnet
local model = `prop_rope_hook_01` -- Besseres Prop für ein Seil mit Magnet
lib.requestModel(model, 100)
local magnetRope = CreateObject(model, GetEntityCoords(cache.ped), true, false, false)
AttachEntityToEntity(magnetRope, cache.ped, GetPedBoneIndex(cache.ped, 28422), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, true, true, false, true, 1, true)
@ -140,7 +140,7 @@ local function StartMagnetFishingProcess(selectedMagnet, waterLoc)
-- Cast magnet
if IsDisabledControlJustReleased(0, 24) then
-- Auswerfen Animation
TaskPlayAnim(cache.ped, 'amb@world_human_hammering@male@base', 'base', 8.0, -8.0, -1, 16, 0, false, false, false)
TaskPlayAnim(cache.ped, 'amb@world_human_golf_player@male@idle_a', 'idle_a', 8.0, -8.0, -1, 16, 0, false, false, false)
TriggerEvent('nordi_magnetfishing:notify', Strings.waiting_find, Strings.waiting_find_desc, 'inform')
-- Wait for magnet to find something