Zum Hauptinhalt springen

Custom Frameworks

Setting up a custom framework

The integration of custom frameworks with the framework library works via exports. It is important that all exports listed below exist and are implemented with the correct parameters and return types.

Setting up a custom framework​

The integration of custom frameworks with the framework library works via exports. It is important that all exports listed below exist and are implemented with the correct parameters and return types.

Server-side export functions​

NameParametersReturn typeDescription
GetPlayerWalletMoneysource (player handle; int)intReturns the player's wallet/cash money
GetPlayerAccountMoneysource (player handle; int), account (string)intReturns the player's money in the given account. 0 if account does not exist
AddPlayerWalletMoneysource (player handle; int), amount (int)void/noneAdds the given amount to the player's wallet/cash money
AddPlayerAccountMoneysource (player handle; int), amount (int), account (string)void/noneAdds the given amount to the given account
RemovePlayerWalletMoneysource (player handle; int), amount (int)void/noneRemoves the given amount from the player's wallet/cash money
RemovePlayerAccountMoneysource (player handle; int), amount (int), account (string)void/noneRemoves the given amount from the given account
AddPlayerInventoryItemsource (player handle; int), item (string), amount (int)void/noneAdds the given item to the player's inventory
RemovePlayerInventoryItemsource (player handle; int), item (string), amount (int)void/noneRemoves the given item from the player's inventory
GetPlayerInventoryItemCountsource (player handle; int), item (string)intReturns the quantity a player has of a given item

Client-side export functions​

NameParametersReturn typeDescription
GetPlayerJobNameNonestringReturns the player's job name
GetPlayerJobGradeNoneintReturns the player's job grade
GetInventoryItemCountitem (string)intReturns the quantity of the given item in the player's inventory