OneSync
Functions
GetPlayersInArea(source, maxDistance, ignore)
Parameter
Type
Description
-- ค้นหาจากไอดีผู้เล่น
local players = AFUCore.OneSync.GetPlayersInArea(1, 100)
-- ค้นหาจากพิกัด
local players = AFUCore.OneSync.GetPlayersInArea(vector3(100.0, 100.0, 30.0), 100)GetClosestPlayer(source, maxDistance, ignore)
Parameter
Type
Description
SpawnVehicle(model, coords, heading, properties, cb)
Parameter
Type
Description
SpawnPed(model, coords, heading, cb)
Parameter
Type
Description
SpawnObject(model, coords, heading, cb)
Parameter
Type
Description
GetPedsInArea(coords, maxDistance, modelFilter)
Parameter
Type
Description
GetObjectsInArea(coords, maxDistance, modelFilter)
Parameter
Type
Description
GetVehiclesInArea(coords, maxDistance, modelFilter)
Parameter
Type
Description