forked from Simnation/Main
Update client.lua
This commit is contained in:
parent
36021d9578
commit
b8250677e2
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ local function StartMagnetFishingProcess(selectedMagnet, waterLoc)
|
||||||
magnetFishing = true
|
magnetFishing = true
|
||||||
|
|
||||||
-- Create magnet rope prop
|
-- 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)
|
lib.requestModel(model, 100)
|
||||||
local magnetRope = CreateObject(model, GetEntityCoords(cache.ped), true, false, false)
|
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)
|
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
|
-- Cast magnet
|
||||||
if IsDisabledControlJustReleased(0, 24) then
|
if IsDisabledControlJustReleased(0, 24) then
|
||||||
-- Auswerfen Animation
|
-- 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')
|
TriggerEvent('nordi_magnetfishing:notify', Strings.waiting_find, Strings.waiting_find_desc, 'inform')
|
||||||
|
|
||||||
-- Wait for magnet to find something
|
-- Wait for magnet to find something
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue