Set the player's position without extra behaviors. Will not behave correctly if the position is not loaded, so only use this for moving a short distance.
Unlike PlayerSetPosXYZ and PedSetPosXYZ, this will not affect anything other than the player's position.
None.
Move the player forward.
local x, y, z = PlayerGetPosXYZ()
local heading = PedGetHeading(gPlayer)
local distance = 3
PlayerSetPosSimple(x - distance * math.sin(heading), y + distance * math.cos(heading), z)