Skip to content

Instantly share code, notes, and snippets.

@xThrasherrr
xThrasherrr / move_head.lua
Last active March 3, 2026 21:21
FiveM Client Script - Move player head to look at closest talking player
-- config values
local config = {
debug = true,
distance = 20 -- distance to check
}
-- variables
local lastTargetPlayer, lastDist = nil, 100
local function debugTxt(...)