local entityWillTeleport = PlayerPedId()
local _, groundCoordZ = GetGroundZFor_3dCoord(blipCoords.x, blipCoords.y, 99999.0)
RequestCollisionAtCoord(blipCoords.x, blipCoords.y, groundCoordZ)
while not HasCollisionLoadedAroundEntity(entityWillTeleport) do Wait(25) end
SetEntityCoordsNoOffset(
entityWillTeleport,
blipCoords.x,
blipCoords.y,
groundCoordZ,
false,
false,
false,
true
)
When I teleport to a waypoint my character falls into, RequestCollisionAtCoord
is not working properly.
How can I avoid this problem?