GetCore is a shared export that returns the core table containing all the getters and setters for vorp core.
some of the getters and setters are client side only and some are server side only.
Shared
return
table
The core table containing all the getters and setters.
Get the character data to access getters and setters
Server
source
number
required
The player ID
local user = Core.getUser(source)--[[@as User]]ifnot user thenreturnend-- is player in session?local character = user.getUsedCharacter --[[@as Character]]
return
string
The unique identifier of the character
local identifier = character.identifier
return
string
The unique character identifier
local charIdentifier = character.charIdentifier
return
string
The group the character belongs to
local group = character.group
return
string
The job of the character
local job = character.job
return
number
The job grade of the character
local jobGrade = character.jobGrade
return
string
The job label of the character
local jobLabel = character.jobLabel
return
number
The amount of money the character has
local money = character.money
return
number
The amount of gold the character has
local gold = character.gold
return
number
The amount of rol the character has
local rol = character.rol
return
number
The amount of experience points the character has
local xp = character.xp
return
string
The first name of the character
local firstname = character.firstname
return
string
The last name of the character
local lastname = character.lastname
return
table
The status of the character
local status = character.status
return
table
The coordinates of the character
local coords = character.coords
return
boolean
Whether the character is dead or not
local isDead = character.isdead
return
table
The skin details of the character
local skin = character.skin
return
table
The component details of the character
local comps = character.comps
return
table
The component tints of the character
local compTints = character.compTints
return
number
The age of the character
local age = character.age
return
string
The gender of the character
local gender = character.gender
return
string
The description of the character
local charDescription = character.charDescription
return
string
The nickname of the character
local nickname = character.nickname
return
number
The inventory capacity of the character
local invCapacity = character.invCapacity
return
table
The skills of the character
local skills = character.skillslocal skill = skills.Craftingifnot skill thenreturnprint("skill not found in core config or it doesn't exist")endlocal skillExp = skill.Explocal skillLevel = skill.Level
Use vorp version check with change logs feature in your scripts
add this in your fxmanifest
-- version must match version.fileversion '0.0.1'vorp_checker 'yes'-- can use color codes ^1vorp_name '^5your resource name ^4version Check^3'-- path to the github repository, in here it must have a version.file file type where your change logs will be, also must be public repositoryvorp_github 'https://github.com/repository/resource_name'
example of a version.file
<0.0.1>-- version must be the same in fxmanifest- new version- added feature- removed feature- fixed something