Fix teleport typo

This commit is contained in:
GhzGarage
2021-04-02 22:27:24 -05:00
parent be3e23ec93
commit 286a90ae7c
+1 -1
View File
@@ -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)