UpdateSafe
Information
Cet export peut être utilisé pour mettre à jour un coffre.
local success <const> = exports['SnapBack_safe']:UpdateSafe(safeId, data)
if success then
-- Le coffre a été mis à jour
else
-- Le coffre n'a pas été mis à jour
end
Paramètre | Type | Description |
---|---|---|
safeId | Integer | L'identifiant du coffre |
data | Array | Les données |
Les données
Clé | Type | Description | Optionnel |
---|---|---|---|
owner | String | L'identifiant du joueur | ✓ |
job | String | Le nom du job | ✓ |
label | String | Le nom du coffre | |
pin | String | Le code PIN | ✓ |
maxWeight | Integer | Le poids maximum | |
coords | Vector3 | Les coordonnées | |
interactRadius | Float | La distance d'interaction | |
bucket | Integer | Le bucket |
Retourne: Boolean | Si le coffre a bien été mis à jour