π€Exports
Server Exports of this script
Entendido, aquΓ estΓ‘ la documentaciΓ³n actualizada:
deletePickup(identifier)
Description: Deletes pickups associated with a specific identifier from the server database.
Parameters:
identifier
: String - The identifier associated with the player whose pickups will be deleted.
Example Usage:
exports['w_collectables']:deletePickup("playerIdentifier")
getDatabase(source)
getDatabase(source)
Description: Retrieves the database data associated with a player.
Parameters:
source
: Integer - The source of the player.
Returns:
Table - Database data containing pickup coordinates.
Example Usage:
local database = exports['w_collectables']:getDatabase(source)
playerPickups(source)
playerPickups(source)
Description: Retrieves the number of pickups collected by a player.
Parameters:
source
: Integer - The source of the player.
Returns:
Integer - Number of pickups collected by the player.
Example Usage:
local pickupCount = exports['w_collectables'].playerPickups(source)
isNearPickup(playerCoords, pickupCoords)
isNearPickup(playerCoords, pickupCoords)
Description: Determines whether a player is near a pickup based on their coordinates.
Parameters:
playerCoords
: Vector3 - The coordinates of the player.pickupCoords
: Vector3 - The coordinates of the pickup.
Returns:
Boolean - True if the player is near the pickup, false otherwise.
Example Usage:
local isNear = exports['w_collectables'].isNearPickup(playerCoords, pickupCoords)
Last updated