
All checks were successful
Build / Build (push) Successful in 28s
This commit introduces the timesheet submission feature and displays pending payments in the bank UI. The following changes were made: - Added a "Submit Timesheet" action tile to the bank UI. - Implemented the `handleTimesheet` function in `script.js` to handle timesheet submissions. - Updated the UI to display pending payments based on player rating and a server-side multiplier. - Modified server-side event handling to process timesheet submissions and calculate payments. - Added a refresh timer to update player data every 30 seconds. - Updated the player load event to include the player's rating.
12 lines
435 B
Plaintext
12 lines
435 B
Plaintext
#include "script_component.hpp"
|
|
|
|
[{
|
|
GETVAR(player,value_loadDone,false)
|
|
}, {
|
|
private _bank = GETVAR(player,FORGE_Bank,0);
|
|
private _cash = GETVAR(player,FORGE_Cash,0);
|
|
private _rating = GETVAR(player,FORGE_Rating,0);
|
|
private _uid = getPlayerUID player;
|
|
|
|
["forge_server_bank_handleEvents", ["BANK::HANDLE::PLAYER::LOAD", [_uid, _bank, _cash, _rating]]] call CFUNC(serverEvent);
|
|
}] call CFUNC(waitUntilAndExecute); |