Skip to content

Instantly share code, notes, and snippets.

View samyh89's full-sized avatar
🚀
working!

Eric Ahi samyh89

🚀
working!
View GitHub Profile
@samyh89
samyh89 / WaypointTeleport.lua
Last active May 10, 2026 21:08
[FiveM] Waypoint Teleport
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if GetKeyJustPressed(296) and not IsController() then
Citizen.CreateThread(function()
local entity = PlayerPedId()
if IsPedInAnyVehicle(entity, false) then
entity = GetVehiclePedIsUsing(entity)
end