Skip to content

Commit 3ed4396

Browse files
committed
Update YimActionsV3.lua
1 parent b081de9 commit 3ed4396

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

SSV2/includes/features/YimActionsV3.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ function YimActions:InitInVehicleAnim(animData, targetPed)
170170
return false
171171
end
172172

173-
local veh = Self:GetVehicleNative()
173+
local veh = PED.GET_VEHICLE_PED_IS_IN(targetPed, true)
174174
if (veh == 0) then -- should never happen
175175
return false
176176
end
177177

178-
local seat = Self:GetVehicleSeat()
178+
local seat = Game.GetPedVehicleSeat(targetPed)
179179
if (not seat or seat > 2) then
180180
return true
181181
end
@@ -456,7 +456,7 @@ function YimActions:RegisterCommands()
456456
self:Play(action)
457457
end)
458458
end,
459-
{ description = _F("YimActions Command: Plays the '%s' %s", label, action:TypeAsString()) }
459+
{ description = _F("YimActions Command: Plays the '%s' %s.", label, action:TypeAsString():lower()) }
460460
)
461461

462462
::continue::
@@ -487,7 +487,7 @@ function YimActions:AddCommandAction(cmd_name, data)
487487
end
488488

489489
if (GVars.features.yim_actions.action_commands[data.label] or CommandExecutor:DoesCommandExist(cmd_name)) then
490-
Notifier:ShowError("YimActions", _F("Command '%s' already exists", data))
490+
Notifier:ShowError("YimActions", _F("Command '%s' already exists.", data))
491491
return
492492
end
493493

0 commit comments

Comments
 (0)