Skip to content

Net Events

All events use RegisterNetEvent and are triggered via TriggerClientEvent or TriggerServerEvent.

Phone Core

Client Events

EventParametersDescription
gcphone:initdata: tableInitialize the phone UI with player data (phoneNumber, wallpaper, ringtone, volume, lockCode, language, audioProfile, etc.).
gcphone:notifypayload: GCPhoneNotificationPayloadPush a phone notification to the NUI.
gcphone:forceOpenPhone--Force-open the phone if it is closed.
gcphone:forceClosePhone--Force-close the phone if it is open.
gcphone:phoneMarkedStolendata: { isStolen: boolean, reason: string }Notify the client that the phone's stolen state changed.

Server Events

EventParametersDescription
gcphone:clearPhoneAccessContext--Clear the phone access context for the calling source (used when switching phones).

Calls

Client Events

EventParametersDescription
gcphone:incomingCallcallData: tableIncoming call notification with caller info.
gcphone:callAcceptedcallData: tableThe remote party accepted the call.
gcphone:callRejectedcallId: integerThe remote party rejected the call.
gcphone:callEndedcallId: integerThe call has ended.
gcphone:receiveIceCandidatecandidates: tableWebRTC ICE candidates for call audio.
gcphone:stopIncomingCallTone--Stop the incoming call ringtone.

Server Events

EventParametersDescription
gcphone:setAirplaneModeenabled: booleanSet airplane mode on/off for the player.
gcphone:rejectCallcallId: integerReject an incoming call.
gcphone:endCallcallId: integerEnd an active call.
gcphone:sendIceCandidatecallId: integer, candidates: tableForward WebRTC ICE candidates to the remote party.

Messages & WaveChat

Client Events

EventParametersDescription
gcphone:contactsUpdatedcontacts: table[]Contact list has been updated.
gcphone:messageSentmessage: tableA message was sent successfully.
gcphone:messageReceivedmessage: tableA new message was received.
gcphone:wavechatGroupMessagepayload: tableA new group message was received in WaveChat.

Settings

Client Events

EventParametersDescription
gcphone:wallpaperUpdatedurl: stringThe wallpaper was changed.

Bank & Wallet

Client Events

EventParametersDescription
gcphone:bankTransferReceivedpayload: tableA bank transfer was received.
gcphone:bankInvoiceReceiveddata: tableA bank invoice was received.
gcphone:bankInvoiceResultdata: tableResult of a bank invoice response.
gcphone:walletNfcInvoiceReceiveddata: tableNFC wallet invoice received via proximity.
gcphone:walletNfcInvoiceResultdata: tableResult of an NFC invoice response.

Snap (Social Media)

Client Events

EventParametersDescription
gcphone:snap:newPostpost: tableA new Snap post was published.
gcphone:snap:newStorystory: tableA new Snap story was published.
gcphone:snap:liveStartedlive: tableA Snap live stream started.
gcphone:snap:liveEndedliveId: integerA Snap live stream ended.
gcphone:snap:liveViewersUpdatedpayload: tableLive stream viewer count updated.
gcphone:snap:liveMessagepayload: tableA message was sent in a live stream chat.
gcphone:snap:liveReactionpayload: tableA reaction was sent in a live stream.
gcphone:snap:liveMessageRemovedpayload: tableA live stream message was removed.
gcphone:snap:liveUserMutedpayload: tableA user was muted in a live stream.

News

Client Events

EventParametersDescription
gcphone:news:newArticlearticle: tableA new news article was published.
gcphone:news:liveStartedarticle: tableA news live broadcast started.
gcphone:news:liveEndedarticleId: integerA news live broadcast ended.
gcphone:news:scaleformUpdatedarticleId: integer, scaleform: tableA news scaleform overlay was updated.
gcphone:news:viewersUpdatedpayload: tableNews live viewer count updated.
gcphone:news:liveMessagepayload: tableA message in the news live chat.
gcphone:news:liveReactionpayload: tableA reaction in the news live stream.
gcphone:news:liveMessageRemovedpayload: tableA news live message was removed.
gcphone:news:liveUserMutedpayload: tableA user was muted in the news live chat.

Proximity

Client Events

EventParametersDescription
gcphone:receiveContactRequestdata: tableA nearby player shared a contact via proximity.
gcphone:receiveSharedLocationdata: tableA shared location was received from another player.
gcphone:receiveFriendRequestdata: tableA friend request was received from a nearby player.
gcphone:friendRequestAccepteddata: tableA friend request was accepted.
gcphone:receiveSharedPostdata: tableA shared social post was received.
gcphone:receiveSharedPhotodata: tableA shared photo was received via proximity.
gcphone:receiveSharedDocumentdata: tableA shared document was received via proximity.

Nearby Voice

Client Events

EventParametersDescription
gcphone:nearbyVoice:startedserverId: integer, peerId: integerNearby voice streaming started with a player.
gcphone:nearbyVoice:stoppedpeerId: integerNearby voice streaming stopped.

Server Events

EventParametersDescription
gcphone:nearbyVoice:setPeerIdpeerId: integerRegister a voice peer ID for the calling player.

Music

Client Events

EventParametersDescription
gcphone:music:playFromNUIdata: tableStart playing music from the NUI.
gcphone:music:pauseFromNUI--Pause music playback.
gcphone:music:resumeFromNUI--Resume music playback.
gcphone:music:stopFromNUI--Stop music playback.
gcphone:music:setVolumeFromNUIpayload: { volume: number }Set music volume.
gcphone:music:setStatestate: tableSync music state.

Server Events

EventParametersDescription
gcphone:music:playdata: tableRequest to play a music track.
gcphone:music:pause--Pause the current track.
gcphone:music:resume--Resume the current track.
gcphone:music:stop--Stop the current track.
gcphone:music:setVolumedata: { volume: number }Set playback volume.

Location Tracking

Client Events

EventParametersDescription
gcphone:liveLocation:starteddata: tableLive location sharing started.
gcphone:liveLocation:updateddata: tableLive location position updated.

Server Events

EventParametersDescription
gcphone:liveLocation:updatePosition--Player position update tick for live location sharing.

Live Streams (Server)

EventParametersDescription
gcphone:live:create--Create a new live room.
gcphone:live:join--Join a live room.
gcphone:live:leave--Leave a live room.
gcphone:live:message--Send a message in a live room.
gcphone:live:reaction--Send a reaction in a live room.
gcphone:live:deleteMessage--Delete a message in a live room.
gcphone:live:mute--Mute a user in a live room.
gcphone:live:unmute--Unmute a user in a live room.
gcphone:live:end--End a live room.

Garage

Client Events

EventParametersDescription
gcphone:garage:spawnVehiclevehicle: tableSpawn a vehicle at the nearest garage point. Contains vehicle data plus _spawnX/Y/Z/H coordinates.

Phone Drop

Client Events

EventParametersDescription
gcphone:phoneDroppeddata: tableA phone was dropped in the world.
gcphone:phonePickedUpphoneId: integerA dropped phone was picked up.

Flashlight (Server)

EventParametersDescription
gcphone:stateChangedopen: booleanThe phone open/close state changed.
gcphone:flashlight:setEnabledenabled: booleanToggle the phone flashlight state.
gcphone:flashlight:setProfiledata: tableUpdate flashlight profile settings.

Framework Integration (Server)

EventParametersDescription
QBCore:Server:PlayerLoadedPlayer: tableQBCore player loaded hook (auto phone init).
QBCore:Server:OnPlayerUnloadsource: integerQBCore player unload hook (cleanup).

Released under GPL-3.0 License