Skip to content

GetSliceFromCoords

Get the slice id from some coords

Argument Data Type Needed Default Description
coords vector3 - The coords of where whe need to get the slice id
Returns
Data Type Description
number The slice id

Example
local playerCoords = GetEntityCoords(PlayerPedId())
local slice = GetSliceFromCoords(playerCoords)

print("Current slice: "..slice)

Last update: April 12, 2022
Created: June 27, 2021