Exports Client
PDrone - Documentation des Exports
PDrone - Exports Documentation
Overview
PDrone exposes several client-side functions to control drones in your script.
Available Exports
Complete Integration Example
-- Client script to use PDrone
RegisterCommand('drone', function(source, args, rawCommand)
local action = args[1]
if action == 'activate' then
local playerPed = PlayerPedId()
exports['PDrone']:activateDrone(playerPed)
TriggerEvent('chat:addMessage', {
args = {"PDrone", "Drone activated!"}
})
elseif action == 'reload' then
exports['PDrone']:reloadGrenade()
TriggerEvent('chat:addMessage', {
args = {"PDrone", "Grenade reloaded!"}
})
elseif action == 'pickup' then
exports['PDrone']:pickUpDrone()
TriggerEvent('chat:addMessage', {
args = {"PDrone", "Drone picked up!"}
})
end
end)
-- Usage: /drone activate | /drone reload | /drone pickupLast updated

