Server
Useful exports used to interact with the resource externally
SpawnDrone
Spawn a delivery drone at given coords carrying items. Drone flies in, drops a collectible box. Anyone can collect it
local success, orderId = exports.kq_droneshop:SpawnDrone(coords, items)Example:
local coords = vector3(215.76, -810.12, 30.73)
local items = {
{ item = 'water', count = 2 },
{ item = 'bread', count = 1 },
}
local success, orderId = exports.kq_droneshop:SpawnDrone(coords, items)
if success then
print('Drone dispatched, order: ' .. orderId)
endLast updated
Was this helpful?