GoNearInitialOffset
Moves the player to the starting offest (this should be perfect, its semi reversed from R* scripts)
Argument | Data Type | Needed | Default | Description |
---|---|---|---|---|
player | player/ped | - | The player ped id (PlayerPedId) or the player client id (PlayerId) | |
coords | vector3 | - | Starting coords to calculate the animation offset | |
rot | vector3 | - | Starting rotation to calculate the animation offset | |
dict | string | - | The animation dict where to find the offset | |
name | string | - | The animation name where to find the offset |
Dont need to be called every frame
Example
local player = PlayerPedId()
local coords = GetEntityCoords(player)
local rot = GetEntityCoords(player)
GoNearInitialOffset(player, coords, rot, "somedict", "somename")
Last update: December 16, 2022
Created: October 31, 2022
Created: October 31, 2022