Skip to content

Commit

Permalink
Change emote and prop coords
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
0pax authored Aug 30, 2021
1 parent 2844f11 commit 5b68c3d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions client/main.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

local stopsigns = {
-949234773
}
Expand All @@ -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)
Expand All @@ -57,4 +56,4 @@ function LoadAnimDict(dict)
RequestAnimDict(dict)
Citizen.Wait(5)
end
end
end

0 comments on commit 5b68c3d

Please sign in to comment.