Skip to Content
Cobalt

ox_fuel

Overextended's fuel resource; Cobalt's bridge sets these hooks to charge cash, then bank.

setMoneyCheck

Client

Replaces 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)
ParameterTypeOptionalDescription
fnfunctionYes
Example
exports.ox_fuel:setMoneyCheck(function() end)

setPaymentMethod

Server

Replaces 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)
ParameterTypeOptionalDescription
fnfunctionYes
Example
exports.ox_fuel:setPaymentMethod(function(playerId, price) return true end)

On this page