Documentation
Docs/Resources/Base/core_game
Base Resource

core_game

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

v1.0.0VCore FrameworkVCORE foundation

Introduction

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

39Client Lua
17Server Lua
35Exports
104Events
2SQL tables

UI page: html/index.html

Dependencies & References

ResourceDetected asPackage status
coreManifest dependencyIncluded in Base
oxmysqlManifest dependencyExternal / prerequisite
polyzoneManifest dependencyIncluded in Base
animsReferenced by sourceIncluded in Base
inventoryReferenced by sourceIncluded in Base
logsReferenced by sourceIncluded in Base
medicalReferenced by sourceIncluded in Base
statuseffectsReferenced by sourceIncluded in Base
utilsReferenced by sourceIncluded in Base
vehiclelocksReferenced by sourceIncluded in Base

Cross-resource export calls

ResourceFunctions called
animsIsCrouching, PlayEmote, ToggleCrouch
coregetCoreObject
inventoryPutCurrentWeaponAway, SetItemDescriptionFormatter, UseItemCharge
logsLog
medicalApplyBleed
statuseffectsApplyConsumable
utilsRegisterAdminAction
vehiclelocksGrantSpawnedVehicleKey, HasKey, RevokeVehicleKeys, TransferVehicleOwnership

Installation / Start Order

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

server.cfg
ensure core_game

Configuration

Config files

  • config.lua
  • restart/config.lua

Top-level config keys detected

AdditionalPedsArmourPutOnTimeBinModelsBlacklistedEntityModelsBlacklistedPedModelsBlacklistEnabledBleedOutTimerBleedOutTimerDevCarwashCleanupEntitiesWhenDamagedConsumablesCurrencyDisableBlindFiringDisableHeadshotsDisableIdleCamDisablePistolWhippingDumpDeadLocalEnabledElevatorsFemaleNoGlovesFemaleNoMaskFireworksForceFreeAimHolsterableWeaponsInteractionTypesInteriorEntitySetsLiveryCommandPermissionMaleNoGlovesMaleNoMaskNeutralAmbientRelationshipGroupsPedPopulationBudgetPickupLocalEnabledSingleFireAllowHoldAutoSingleFireWeaponsSingleFireWeaponsInVehicleOnlySkilledWorkerSlingCompatibleWeaponsStaticCraftingLocationsTimeForRespawnTimeForRespawnDevTrunkModelsUseDiscordRichPresenceVehiclePopulationBudgetWeaponAllowedReticleWeaponDamageModifiersWeaponRecoilModifiersWorldSync

Events, Exports & Callbacks

Exports

Client exports15
  • CanDestroyInteractionObject
  • CanPickupInteractionObject
  • GetClosestInteractionObject
  • GetCrosshairState
  • GetInteractionObjectMetadata
  • GetTime
  • GetWeather
  • IsBlackout
  • IsCrosshairEnabled
  • IsTimeFrozen
  • IsWearingGloves
  • IsWearingMask
  • IsWeatherFrozen
  • SetCrosshairMode
  • SetCrosshairPreview
Server exports15
  • ExecuteVehicleUtilsAdminAction
  • ExecuteWorldUtilsAdminAction
  • GetInteractionObject
  • GetRestartSecondsRemaining
  • GetRestartStage
  • GetRestartTheme
  • GetTime
  • GetWeather
  • IsRestartActive
  • SetBlackout
  • SetInteractionObjectMetadata
  • SetTime
  • SetTimeFrozen
  • SetWeather
  • SetWeatherFrozen
Shared exports5
  • GetTime
  • GetWeather
  • IsBlackout
  • IsTimeFrozen
  • IsWeatherFrozen

Callbacks

Server callbacks1
  • core_game:attemptWashPayment

Registered network events

Client registered events66
  • VCORE:Client:OnPlayerLoaded
  • VCORE:Client:OnPlayerSpawned
  • VCORE:Client:OnPlayerUnload
  • VCORE:Player:UpdateClientInventoryCache
  • consumables:client:misc
  • consumables:client:music
  • consumables:client:rng
  • consumables:destress
  • consumables:drink
  • consumables:food
  • core_game:anchorBoat
  • core_game:canCleanCar
  • core_game:client:adminCleanVehicle
  • core_game:client:adminDeleteVehicle
  • core_game:client:adminFixVehicle
  • core_game:client:adminFuelVehicle
  • core_game:client:adminSpawnVehicle
  • core_game:client:adminToggleInteriorEntitySet
  • core_game:client:binocularsToggle
  • core_game:client:blipManager
  • core_game:client:chemicalCraftCheck
  • core_game:client:cleanVehicle
  • core_game:client:createCraftingTable
  • core_game:client:deleteInteractionObject
  • core_game:client:destroyClosestInteractionObject
  • core_game:client:flipVehicle
  • core_game:client:grantParachute
  • core_game:client:handleTrunk
  • core_game:client:packParachute
  • core_game:client:pickupClosestInteractionObject
  • core_game:client:putintrunk
  • core_game:client:scubaToggle
  • core_game:client:setCrosshairMode
  • core_game:client:setCrosshairPreview
  • core_game:client:setInteractionObjects
  • core_game:client:setInteriorEntitySet
  • core_game:client:skilledWorkerMenu
  • core_game:client:syncInteriorEntitySets
  • core_game:client:toggleTrunkDoor
  • core_game:client:transferVehMenu
  • core_game:client:updateInteractionObject
  • core_game:client:useArmor
  • core_game:client:useParachute
  • core_game:elevatorTeleport
  • core_game:newscam
  • core_game:playSound
  • core_game:putinheli
  • core_game:stopSound
  • dice:roll
  • fireworks:client:UseFirework
  • fireworks:client:launch
  • itemFx:drinkAlcohol
  • itemFx:reduceFx
  • itemFx:soberUp
  • me:display
  • particle:client:StartParticle
  • particle:client:StartParticleForEntity
  • particle:client:StopParticle
  • vcore:restart:client:cancelled
  • vcore:restart:client:serverShuttingDown
  • vcore:restart:client:stageChanged
  • vcore:restart:client:started
  • vcore:restart:client:sync
  • weapons:ResetHolster
  • weather:syncWeather
  • weather:syncWeatherTime
Server registered events35
  • coin:flip
  • consumables:server:darts
  • core_game:elevatorBring
  • core_game:server:addInteractionObject
  • core_game:server:adminDeleteVehicle
  • core_game:server:completeFirework
  • core_game:server:completeParachute
  • core_game:server:fetchVehicles
  • core_game:server:getInteractionObjects
  • core_game:server:pickupInteractionObject
  • core_game:server:playSound
  • core_game:server:registerAdminVehicle
  • core_game:server:requestTrunk
  • core_game:server:skilledWorkerCollectOrder
  • core_game:server:skilledWorkerOrders
  • core_game:server:skilledWorkerPlaceOrder
  • core_game:server:skilledWorkerPlaceOrders
  • core_game:server:startChemicalCraft
  • core_game:server:stopChemicalCraft
  • core_game:server:stopSound
  • core_game:server:toggleTrunkDoor
  • core_game:server:transferVeh
  • core_game:server:updateInteractionObjectMetadata
  • core_game:server:useArmor
  • core_game:setInteriorProperties
  • core_game:useCleaningKit
  • dice:server:roll
  • gacha:roll
  • me:manual
  • particle:server:StartParticleAtLocation
  • particle:server:StartParticleForEntity
  • particle:server:StartParticleInArea
  • particle:server:StopParticle
  • textpicker:server:picker
  • vcore:restart:server:requestSync
Shared registered events3
  • VCORE:Client:OnPlayerLoaded
  • weather:syncWeather
  • weather:syncWeatherTime

Commands

Client commands10
  • +newscam
  • -newscam
  • bonnet
  • boot
  • door
  • hood
  • livery
  • neon
  • seat
  • trunk
Server commands6
  • dice
  • interiorset
  • me
  • vcore_restart_cancel
  • vcore_restart_stage
  • vcore_restart_test

Database / SQL

FileType
sql/core_game.sqlResource SQL file
sql/skilledworker.sqlResource SQL file
interactionobjectsskilledworker_orders

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

Source Layout

AreaDetected files
Client Lua39
Server Lua17
Other/shared Lua5
JavaScript2
HTML2
CSS2
SQL2

Troubleshooting

  • Confirm all manifest dependencies are started before core_game.
  • 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.