From 5b68c3d9ac88ee81bfbc9edc7c6fdd300f262715 Mon Sep 17 00:00:00 2001 From: 0pax <64065031+0pax@users.noreply.github.com> Date: Mon, 30 Aug 2021 17:19:05 +0200 Subject: [PATCH] Change emote and prop coords Makes it look more natural. Thanks to @TayMcKenzieNZ on the FiveM forums for the anim and coords for the prop (even tho there was some small changes needed) --- client/main.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/client/main.lua b/client/main.lua index dd3378b..ad1c498 100644 --- a/client/main.lua +++ b/client/main.lua @@ -1,4 +1,3 @@ - local stopsigns = { -949234773 } @@ -22,15 +21,15 @@ AddEventHandler('0pax:stealStopsign', function() local closestObj = GetClosestObjectOfType(playerCoords, 2.0, `prop_sign_road_01a`, true) if DoesEntityExist(closestObj) then - if(IsPedArmed(playerPed, 1|2|4)) then SetCurrentPedWeapon(PlayerPedId(), `WEAPON_UNARMED`, 1) end + if(IsPedArmed(playerPed, 1|2|4)) then SetCurrentPedWeapon(playerPed, `WEAPON_UNARMED`, 1) end - local dict = "amb@world_human_janitor@male@base" + local dict = "rcmnigel1d" LoadAnimDict(dict) - TaskPlayAnim(playerPed, dict, "base", 5.0, -1, -1, 50, 0, false, false, false) + TaskPlayAnim(playerPed, dict, "base_club_shoulder", 5.0, -1, -1, 50, 0, false, false, false) RemoveAnimDict(dict) stopsign = CreateObject(`prop_sign_road_01a`, playerCoords.x, playerCoords.y, playerCoords.z, true, false, false) - AttachEntityToEntity(stopsign, playerPed,GetPedBoneIndex(playerPed, 28422),-0.005,0.0,0.0,360.0,360.0,0.0,1,1,0,1,0,1) + AttachEntityToEntity(stopsign, playerPed,GetPedBoneIndex(playerPed, 60309),-0.1390, -0.4870, 0.2200, -67.3315314, 145.0627869, -4.4318885,1,1,0,1,0,1) if DoesEntityExist(stopsign) then DeleteObject(closestObj) SetEntityCoords(closestObj, -100.0, -100.0, -100.0) @@ -57,4 +56,4 @@ function LoadAnimDict(dict) RequestAnimDict(dict) Citizen.Wait(5) end -end \ No newline at end of file +end