Browse docs

Client: SetFluidLeakProvider(resourceName, serverEvent)

Reference for Client: SetFluidLeakProvider(resourceName, serverEvent) in mechanicjob.

All exports

This page documents supported public integration calls and usage examples. It does not expose or reproduce the resource's internal implementation.

Client Exports

SetFluidLeakProvider(resourceName, serverEvent)

Overrides the configured vehicle-fluid provider for the current client. The provider resource must be started, and its server event must accept the documented vehicle-fluid payload. Returns false when either argument is empty.

local success = exports["sky_mechanicjob"]:SetFluidLeakProvider(
    GetCurrentResourceName(),
    "my_spill_resource:createFromVehicle"
)