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β
Name | Parameters | Return type | Description |
---|---|---|---|
GetPlayerWalletMoney | source (player handle; int) | int | Returns the player's wallet/cash money |
GetPlayerAccountMoney | source (player handle; int), account (string) | int | Returns the player's money in the given account. 0 if account does not exist |
AddPlayerWalletMoney | source (player handle; int), amount (int) | void/none | Adds the given amount to the player's wallet/cash money |
AddPlayerAccountMoney | source (player handle; int), amount (int), account (string) | void/none | Adds the given amount to the given account |
RemovePlayerWalletMoney | source (player handle; int), amount (int) | void/none | Removes the given amount from the player's wallet/cash money |
RemovePlayerAccountMoney | source (player handle; int), amount (int), account (string) | void/none | Removes the given amount from the given account |
AddPlayerInventoryItem | source (player handle; int), item (string), amount (int) | void/none | Adds the given item to the player's inventory |
RemovePlayerInventoryItem | source (player handle; int), item (string), amount (int) | void/none | Removes the given item from the player's inventory |
GetPlayerInventoryItemCount | source (player handle; int), item (string) | int | Returns the quantity a player has of a given item |
Client-side export functionsβ
Name | Parameters | Return type | Description |
---|---|---|---|
GetPlayerJobName | None | string | Returns the player's job name |
GetPlayerJobGrade | None | int | Returns the player's job grade |
GetInventoryItemCount | item (string) | int | Returns the quantity of the given item in the player's inventory |