Documentation
Docs/Resources/Base/vcore_phone
Base Resource

vcore_phone

The supplied manifest describes this resource as “VCore - VCore Phone”.

v1.0.0VCore FrameworkCore systems

Introduction

The supplied manifest describes this resource as “VCore - VCore Phone”.

59Client Lua
64Server Lua
19Exports
39Events
66SQL tables

UI page: ui/dist/index.html

Dependencies & References

ResourceDetected asPackage status
coreManifest dependencyIncluded in Base
inventoryManifest dependencyIncluded in Base
oxmysqlManifest dependencyExternal / prerequisite
pma-voiceManifest dependencyIncluded in Base
bankingReferenced by sourceIncluded in Base
garagesReferenced by sourceIncluded in Base
logsReferenced by sourceIncluded in Base

Cross-resource export calls

ResourceFunctions called
bankingDepositToPrimaryAccount, GetPrimaryAccountBalance, WithdrawFromPrimaryAccount
coregetCoreObject
garagesGetGarageLocation
inventoryGetItemAmount
logsLog
pma-voiceaddPlayerToCall, removePlayerFromCall, setCallVolume, setPlayerCall

Installation / Start Order

The supplied server.cfg enables this resource in the Core systems stage at enabled-resource position 41. Base installation also depends on the global prerequisites and consolidated VCORE_INSTALL.sql documented in Getting Started.

server.cfg
ensure vcore_phone

Configuration

Config files

  • config/config.json
  • config/config.lua
  • shared/defaultConfig.lua

Top-level config keys detected

AdminPermissionAirshareAppStoreAutoDeleteDaysAutoDeleteNotificationsBankAccountBatteryBatteryDrainBatteryDrainAmountBatteryIntervalCameraCellTowersCryptoCryptosCurrencyDarkChatDatabaseDebugFrameworkGarageGovernmentListingsHousingInstagramItemModeLogsMailMapsMarketplaceMaxTransferAmountMusicOpenKeyPhoneItemPhoneNumberFormatSecurityServicesTikTokTinderTwitterUseItemVersionCheckVoiceResourceWalletWeatherAPIKeyWeatherCityYellowPages

Events, Exports & Callbacks

Exports

Client exports5
  • ClosePhone
  • GetPhoneNumber
  • OpenPhone
  • SendPhoneNotification
  • TogglePhone
Server exports14
  • AddPhoneContact
  • AssignPhoneNumber
  • EndPhoneCall
  • GetActivePhoneCall
  • GetOnDutyCount
  • GetOnDutySources
  • GetPhoneContacts
  • GetPhoneMessages
  • GetPhoneNumber
  • GetSourceFromNumber
  • SendPhoneMail
  • SendPhoneMessage
  • SendPhoneNotification
  • StartExternalCall

Callbacks

Server callbacks1
  • phone:cb:
Client callbacks1
  • phone:ccb:

Registered network events

Client registered events22
  • VCORE:Client:OnPlayerLoaded
  • VCORE:Client:OnPlayerUnload
  • VCORE:client:playerLoaded
  • VCORE:client:playerUnloaded
  • VCORE_phone:client:shareOwnContactResult
  • VCORE_phone:messages
  • VCORE_phone:nui
  • VCORE_phone:playSound
  • VCORE_phone:securityReset
  • VCORE_phone:social:instagramPost
  • VCORE_phone:social:newMessage
  • VCORE_phone:social:tiktokPost
  • VCORE_phone:social:twitterPost
  • VCORE_phone:speakerPhone
  • VCORE_phone:useItem
  • VCORE_phone:webrtc:answer
  • VCORE_phone:webrtc:end
  • VCORE_phone:webrtc:endCall
  • VCORE_phone:webrtc:ice
  • VCORE_phone:webrtc:offer
  • VCORE_phone:webrtc:signal
  • core:resetUi
Server registered events17
  • VCORE_phone:securityReset
  • VCORE_phone:server:acceptCall
  • VCORE_phone:server:airshare
  • VCORE_phone:server:airshareResponse
  • VCORE_phone:server:endCall
  • VCORE_phone:server:muteCall
  • VCORE_phone:server:nuiAction
  • VCORE_phone:server:rejectCall
  • VCORE_phone:server:shareOwnContact
  • VCORE_phone:server:speakerPhone
  • VCORE_phone:webrtc:answer
  • VCORE_phone:webrtc:createdPeer
  • VCORE_phone:webrtc:deletedPeer
  • VCORE_phone:webrtc:end
  • VCORE_phone:webrtc:ice
  • VCORE_phone:webrtc:offer
  • VCORE_phone:webrtc:signal

Commands

Client commands9
  • +phone_answer
  • +phone_hangup
  • +phone_open
  • -phone_answer
  • -phone_hangup
  • -phone_open
  • fixphone
  • phonecheck
  • phonenum
Server commands7
  • changenumber
  • fixphonenumbers
  • phoneinfo
  • phonestats
  • phonetest
  • resetphonesecurity
  • toggleverified

Database / SQL

FileType
phone.sqlResource SQL file
phone_airshare_filesphone_alarmsphone_album_mediaphone_album_membersphone_albumsphone_backupsphone_callsphone_contactsphone_conversation_membersphone_conversationsphone_crypto_transactionsphone_crypto_walletsphone_darkchat_accountsphone_darkchat_channelsphone_darkchat_messagesphone_darkchat_subscriptionsphone_garage_bookmarksphone_instagram_accountsphone_instagram_commentsphone_instagram_follow_requestsphone_instagram_followsphone_instagram_likesphone_instagram_postsphone_installed_appsphone_invoicesphone_location_sharesphone_mailphone_mail_accountsphone_mail_draftsphone_marketplace_listingsphone_mediaphone_message_reactionsphone_messagesphone_music_playlist_songsphone_music_playlistsphone_notesphone_notificationsphone_phonesphone_saved_locationsphone_schema_migrationsphone_social_messagesphone_social_sessionsphone_social_storiesphone_social_story_viewsphone_tiktok_accountsphone_tiktok_comment_likesphone_tiktok_commentsphone_tiktok_followsphone_tiktok_likesphone_tiktok_savedphone_tiktok_videosphone_tiktok_viewsphone_tinder_match_seenphone_tinder_matchesphone_tinder_profilesphone_tinder_swipesphone_twitter_accountsphone_twitter_follow_requestsphone_twitter_followsphone_twitter_likesphone_twitter_retweetsphone_twitter_tweetsphone_voice_memosphone_voicemailsphone_wallet_transactionsphone_yellowpages_ads

The root Base package also ships the consolidated VCORE_INSTALL.sql.

Source Layout

AreaDetected files
Client Lua59
Server Lua64
Other/shared Lua10
JavaScript34
HTML2
CSS30
SQL1

Troubleshooting

  • Confirm all manifest dependencies are started before vcore_phone.
  • Check the supplied start-order note above; resources absent from server.cfg need an explicit decision before enabling.
  • If database queries fail, import the consolidated Base SQL and any resource-local SQL listed above.
  • If the UI fails, verify the resource's NUI files and ui_page when one is declared.