mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 02:01:33 +00:00
Fix teleport typo
This commit is contained in:
@@ -3,7 +3,7 @@ RegisterNetEvent('QBCore:Command:TeleportToPlayer')
|
||||
AddEventHandler('QBCore:Command:TeleportToPlayer', function(othersource)
|
||||
local coords = QBCore.Functions.GetCoords(GetPlayerPed(GetPlayerFromServerId(othersource)))
|
||||
local entity = PlayerPedId()
|
||||
if IsPedInAnyVehicle(Entity, false) then
|
||||
if IsPedInAnyVehicle(entity, false) then
|
||||
entity = GetVehiclePedIsUsing(entity)
|
||||
end
|
||||
SetEntityCoords(entity, coords.x, coords.y, coords.z)
|
||||
|
||||
Reference in New Issue
Block a user