Skip to content

Instantly share code, notes, and snippets.

View jcf54's full-sized avatar
Doing something, somewhere...probably

Joe jcf54

Doing something, somewhere...probably
  • United Kingdom
  • 16:57 (UTC)
View GitHub Profile
@jcf54
jcf54 / cl_tpbinds.lua
Created July 14, 2021 15:53
FiveM: keybinds to set and restore a specified location
local storedLocation, storedHeading -- define variables for future use
local isMenuOpen
function SetLocationKB()
storedLocation=GetEntityCoords(GetPlayerPed(-1))
storedHeading=GetEntityHeading(GetPlayerPed(-1))
ShowNotification("New location set")
end
function RestoreLocationKB()
if not storedLocation then