General Exports
This page explains the available client-side exports for the r_hbucket and their usage. These exports allow you to interact with the script programmatically from other resources.
1. Exports Overview
1.1 Get Bucket Water Quantity
exports['r_hbucket']:GetAerialWaterQuantity(netId)Description: Returns the current water quantity of a helicopter using its network ID.
Parameters:
netId: The network ID of the helicopter.
Returns:
number: The quantity of water remaining. Returnsnilif the entity doesn't exist or isn't tracked.
Example Usage:
local netId = NetworkGetNetworkIdFromEntity(vehicle)
local quantity = exports['r_hbucket']:GetAerialWaterQuantity(netId)1.2 Set Bucket Water Quantity
exports['r_hbucket']:SetAerialWaterQuantity(netId, quantity)Description: Sets a new water quantity for a specific helicopter and syncs the change with the server.
Parameters:
netId: The network ID of the helicopter.quantity: The new amount of water to set.
Example Usage:
Last updated