For the complete documentation index, see llms.txt. This page is also available as Markdown.

Server

Synchronous server-side decision functions located in `custom/server/validate.lua`. Return `true` to allow the action on the server or `false` to reject/block it.

CanSellNPCServer

Validates before awarding money and removing drugs during NPC drug sales.

Signature

CanSellNPCServer(source, zoneData, item, amount, price, currency) -> boolean

Example

CanSellNPCServer = function(source, zoneData, item, amount, price, currency)
    return true
end

CanSellDealerServer

Validates when a player sells items to a dealer.

Signature

CanSellDealerServer(source, shopData, item, amount, price, currency) -> boolean

Example

CanSellDealerServer = function(source, shopData, item, amount, price, currency)
    return true
end

CanBuyDealerServer

Validates when a player purchases items from a dealer.

Signature

Example


CanStockCornerboyServer

Validates when a player deposits drugs into a cornerboy.

Signature

Example


CanHarvestFieldServer

Validates when a player requests to start harvesting a plant in a drug field.

Signature

Example


CanCollectServer

Validates when a player claims an item from a collection zone.

Signature


CanProcessServer

Validates when a player processes materials in a lab zone.

Signature


CanHandcraftServer

Validates when a player finishes handcrafting an item.

Signature


CanUseDrugServer

Validates before a drug is consumed and its effects/items are applied on the server.

Signature

Last updated