ox_fuel
Overextended's fuel resource; Cobalt's bridge sets these hooks to charge cash, then bank.
setMoneyCheck
ClientReplaces how much money the pump thinks the player has; nil restores the default. bridge/money/client.lua sets it to the larger of cash and bank.
exports.ox_fuel:setMoneyCheck(fn)| Parameter | Type | Optional | Description |
|---|---|---|---|
fn | function | Yes |
exports.ox_fuel:setMoneyCheck(function() end)setPaymentMethod
ServerReplaces how a fill-up is charged; nil restores the default. The function returns true when the player paid. bridge/money/server.lua sets it to charge cash, then bank.
exports.ox_fuel:setPaymentMethod(fn)| Parameter | Type | Optional | Description |
|---|---|---|---|
fn | function | Yes |
exports.ox_fuel:setPaymentMethod(function(playerId, price) return true end)