Skip to content

Instantly share code, notes, and snippets.

@samyh89
samyh89 / WaypointTeleport.lua
Created September 30, 2018 10:55
[GTAV/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