Events Reference
Complete list of all events in the wtf_group resource.
Server Events (TriggerServerEvent)
Group Management
| Event | Parameters | Description |
|---|---|---|
wtf_group:server:createGroup | groupType | Create new group |
wtf_group:server:disbandGroup | — | Disband group |
wtf_group:server:leaveGroup | — | Leave group |
wtf_group:server:invitePlayer | citizenid | Invite player |
wtf_group:server:acceptInvite | — | Accept invite |
wtf_group:server:denyInvite | — | Deny invite |
wtf_group:server:kickMember | citizenid | Kick member |
wtf_group:server:promoteMember | citizenid | Transfer leadership |
wtf_group:server:refreshDashboard | — | Refresh dashboard |
Join Requests
| Event | Parameters | Description |
|---|---|---|
wtf_group:server:requestJoin | groupId | Request to join |
wtf_group:server:acceptJoinRequest | citizenid | Accept join |
wtf_group:server:denyJoinRequest | citizenid | Deny join |
Tasks
| Event | Parameters | Description |
|---|---|---|
wtf_group:server:createTask | taskType, title, desc, instructions, data | Create task |
wtf_group:server:activateTask | taskId | Start task |
wtf_group:server:completeTask | taskId | Complete task |
wtf_group:server:failTask | taskId | Fail task |
Roles
| Event | Parameters | Description |
|---|---|---|
wtf_group:server:assignRole | citizenid, role | Assign role |
wtf_group:server:removeRole | citizenid | Remove role |
Alliances & Turfs
| Event | Parameters | Description |
|---|---|---|
wtf_group:server:proposeAlliance | targetGroupId | Propose alliance |
wtf_group:server:acceptAlliance | proposerGroupId | Accept alliance |
wtf_group:server:claimTurf | name, x, y, z, radius, color, income | Claim turf |
wtf_group:server:challengeTurf | turfId | Challenge turf |
Bounties & Mail
| Event | Parameters | Description |
|---|---|---|
wtf_group:server:postBounty | title, desc, reward, targetCid | Post bounty |
wtf_group:server:claimBounty | bountyId | Claim bounty |
wtf_group:server:sendMail | subject, message, priority | Send mail |
Tablet
| Event | Parameters | Description |
|---|---|---|
wtf_group:server:tablet:openApp | appId | App opened |
wtf_group:server:tablet:closeApp | windowId | App closed |
wtf_group:server:tablet:sendMessage | appId, type, data | Send app message |
wtf_group:server:tablet:syncApps | — | Sync registered apps |
wtf_group:server:tablet:loadSettings | — | Load settings |
wtf_group:server:tablet:saveSettings | settings | Save settings |
wtf_group:server:tablet:loadInstalledApps | — | Load installed apps |
wtf_group:server:tablet:saveInstalledApps | apps | Save installed apps |
wtf_group:server:tablet:setAppData | appId, key, value | Save app data |
wtf_group:server:tablet:getAppData | appId, key | Get app data |
wtf_group:server:tablet:getAllAppData | appId | Get all app data |
wtf_group:server:tablet:deleteAppData | appId, key | Delete app data |
VPN
| Event | Parameters | Description |
|---|---|---|
wtf_group:server:vpnGetProxies | — | Request all VPN data |
wtf_group:server:vpnConnect | proxyId | Connect to proxy |
wtf_group:server:vpnDisconnect | — | Disconnect from VPN |
wtf_group:server:vpnActivateKey | keyCode | Activate license key |
Auction
| Event | Parameters | Description |
|---|---|---|
wtf_group:server:auctionRegister | username, password, displayName | Register account |
wtf_group:server:auctionLogin | username, password | Login |
wtf_group:server:auctionValidateSession | token | Validate session |
wtf_group:server:auctionLogout | token | Logout |
wtf_group:server:auctionGetBalance | — | Get auction balance |
wtf_group:server:auctionDeposit | amount | Deposit from bank |
wtf_group:server:auctionWithdraw | amount | Withdraw to bank |
wtf_group:server:auctionGetListings | category, search, sort, page | Browse listings |
wtf_group:server:auctionGetArchivedListings | category, search, sort, page | Browse archived |
wtf_group:server:auctionGetListing | auction_id | Get listing detail |
wtf_group:server:auctionPlaceBid | auction_id, amount | Place a bid |
wtf_group:server:auctionBuyout | auction_id | Buyout auction |
wtf_group:server:auctionClaimAuction | auction_id | Claim won item |
wtf_group:server:auctionCancelListing | auction_id | Cancel own listing |
wtf_group:server:auctionToggleWatch | auction_id | Toggle watchlist |
wtf_group:server:auctionGetMyListings | — | Get my listings |
wtf_group:server:auctionGetMyBids | — | Get my bids |
wtf_group:server:auctionGetMyWonItems | — | Get won items |
wtf_group:server:auctionGetMyWatchlist | — | Get watchlist |
wtf_group:server:auctionCreateListing | type, title, price, etc. | Create listing |
wtf_group:server:auctionGetShopsForListing | — | Get player shops |
wtf_group:server:auctionCreateShopListing | shop_label, price, etc. | Create shop listing |
wtf_group:server:auctionGetVehiclesForListing | — | Get player vehicles |
wtf_group:server:auctionCreateVehicleListing | plate, price, etc. | Create vehicle listing |
wtf_group:server:auctionGetInventoryItems | — | Get inventory items |
wtf_group:server:auctionHasVPNAccess | — | Check VPN access |
wtf_group:server:auctionAdminGetAllListings | status, type, page | Admin: all listings |
wtf_group:server:auctionAdminGetStats | — | Admin: stats |
wtf_group:server:auctionAdminToggleFeatured | auction_id | Admin: toggle featured |
wtf_group:server:auctionAdminCancelAuction | auction_id | Admin: cancel auction |
wtf_group:server:auctionAdminDeleteListing | auction_id | Admin: delete listing |
Contracts
| Event | Parameters | Description |
|---|---|---|
wtf_group:server:contracts:getTypes | — | Get all contract types with stock + player info |
wtf_group:server:contracts:getInventory | — | Get player's owned contracts |
wtf_group:server:contracts:buy | contractId | Purchase a contract |
wtf_group:server:contracts:start | contractId | Start a contract |
wtf_group:server:contracts:joinStartQueue | contractId | Join start queue |
wtf_group:server:contracts:leaveStartQueue | contractId | Leave start queue |
wtf_group:server:contracts:getStartQueue | contractId | Get start queue data |
wtf_group:server:contracts:getHistory | — | Get purchase history |
Client Events (TriggerClientEvent)
Group Lifecycle
| Event | Data | NUI Action |
|---|---|---|
wtf_group:client:groupSync | data | groupSync |
wtf_group:client:groupDisbanded | — | groupDisbanded |
wtf_group:client:openUI | data, data2 | openUI |
wtf_group:client:closeUI | — | closeUI |
Invites & Join Requests
| Event | Data | NUI Action |
|---|---|---|
wtf_group:client:inviteReceived | data | inviteReceived |
wtf_group:client:inviteAccepted | — | inviteAccepted |
wtf_group:client:inviteDenied | — | inviteDenied |
wtf_group:client:joinRequestReceived | data | joinRequestReceived |
Tasks
| Event | Data | NUI Action |
|---|---|---|
wtf_group:client:taskCreated | data | taskCreated |
wtf_group:client:taskActivated | taskId | taskActivated |
wtf_group:client:taskCompleted | taskId | taskCompleted |
wtf_group:client:taskFailed | taskId | taskFailed |
wtf_group:client:showInstruction | data | showInstruction |
wtf_group:client:hideInstruction | — | hideInstruction |
Reputation & Cooldowns
| Event | Data | NUI Action |
|---|---|---|
wtf_group:client:repSync | data | repSync |
wtf_group:client:levelUp | data | levelUp |
wtf_group:client:cooldownSet | data | cooldownSet |
wtf_group:client:cooldownResult | data | cooldownResult |
GPS & Dashboard
| Event | Data | NUI Action |
|---|---|---|
wtf_group:client:gpsSync | data | gpsSync |
wtf_group:client:gpsToggled | data | gpsToggled |
wtf_group:client:dashboardSync | data | dashboardSync |
Tablet
| Event | Data | NUI Action |
|---|---|---|
wtf_group:client:tablet:open | — | tablet:open |
wtf_group:client:tablet:close | — | tablet:close |
wtf_group:client:tablet:appMessage | appId, type, data | tablet:appMessage |
wtf_group:client:tablet:notification | appId, title, msg, type | tablet:notification |
wtf_group:client:tablet:settingsLoaded | settings | tablet:settingsLoaded |
wtf_group:client:tablet:installedAppsLoaded | apps | tablet:installedAppsLoaded |
wtf_group:client:tablet:appDataLoaded | appId, key, value | tablet:appDataLoaded |
wtf_group:client:tablet:allAppDataLoaded | appId, data | tablet:allAppDataLoaded |
wtf_group:client:tablet:registerExternalApps | apps | — |
NUI Messages (SendNUIMessage → window.addEventListener)
Tablet Messages
| Action | Data | Source |
|---|---|---|
tablet:open | — | client/tablet.lua |
tablet:close | — | client/tablet.lua |
tablet:settingsLoaded | settings | client/tablet.lua |
tablet:installedAppsLoaded | apps | client/tablet.lua |
tablet:appDataLoaded | appId, key, value | client/tablet.lua |
tablet:allAppDataLoaded | appId, data | client/tablet.lua |
tablet:appMessage | appId, messageType, data | client/tablet.lua |
tablet:notification | appId, title, message, type | client/tablet.lua |
Legacy Group Messages
| Action | Data | Source |
|---|---|---|
openUI | data, data2, citizenId | client/sync.lua |
closeUI | — | client/sync.lua |
groupUpdated | data | client/sync.lua |
groupSync | data | client/sync.lua |
groupDisbanded | — | client/sync.lua |
inviteReceived | data | client/sync.lua |
inviteAccepted | — | client/sync.lua |
inviteDenied | — | client/sync.lua |
inviteExpired | — | client/sync.lua |
taskCreated | data | client/sync.lua |
taskActivated | data | client/sync.lua |
taskCompleted | data | client/sync.lua |
taskFailed | data | client/sync.lua |
showInstruction | data | client/sync.lua |
hideInstruction | — | client/sync.lua |
repSync | data | client/sync.lua |
levelUp | data | client/sync.lua |
cooldownSet | data | client/sync.lua |
cooldownResult | data | client/sync.lua |
dashboardSync | data | client/sync.lua |
gpsSync | data | client/sync.lua |
gpsToggled | data | client/sync.lua |
showNotification | title, description, type | client/sync.lua |
vpnData | data | client/vpn.lua |
auctionResponse | auctionAction, data | client/auction.lua |
auctionWatcherUpdate | auctionEvent, data | client/auction.lua |
contractsResponse | contractAction, data | client/contracts.lua |