Client Exports
Client Exports
Section titled “Client Exports”All client exports can be called from other client-side resources using the exports function.
GetDrops
Section titled “GetDrops”Get all active airdrops on the client.
local drops = exports['senor-airdrops']:GetDrops()Returns:
table- Array of active airdrop data
Example:
local drops = exports['senor-airdrops']:GetDrops()if drops then for _, drop in ipairs(drops) do print("Drop at: " .. drop.coords.x .. ", " .. drop.coords.y) endendGetDropAtCoords
Section titled “GetDropAtCoords”Get an airdrop at specific coordinates.
local drop = exports['senor-airdrops']:GetDropAtCoords(coords)Parameters:
coords(vector3) - The coordinates to check
Returns:
table | nil- Airdrop data table if found at coordinates, ornilotherwise
Example:
local coords = GetEntityCoords(PlayerPedId())local drop = exports['senor-airdrops']:GetDropAtCoords(coords)if drop then print("Drop found at current position: " .. drop.id)end