Export
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
GetCore
GetCore
table
The core table containing all the getters and setters.
Register Server Jobs
Allowing you to only give correct jobs and grades to the players and to prevent them from using incorrect jobs and grades.Server Side
- RegisterJobs
RegisterJobs
RegisterJobs
Register jobs to the server, this will be stored in config/jobs.lua file in vorp core then can be registered automatically using the RegisterJobs function or manually by adding the jobs to the lua file.
table
required
job data is a table with the following keys:
jobname:stringjob name as the key and the job data as the value.groups:arrayoptional, if you wish to set this job to only this group can give this job.privateJob:booleanif true, the job will be private no one can give this job.grades:tableonly add grades if you use grades[grade]:tablegrade number as the key and the grade data as the value.label:stringthe label of the gradeprivateGrade:booleanif true, the grade will be private no one can give this grade.
string
required
The resource name to register the jobs to for debug
Notifications
notifications can also accept -1 as duration to always stay on screen and to clear them you need to use UiFeedClearChannelShared
- Client
- Server
NotifyLeft
NotifyLeft
NotifyTop
NotifyTop
NotifySimpleTop
NotifySimpleTop
NotifyAvanced
NotifyAvanced
string
required
The title of the notification
string
required
The dictionary for the icon
string
required
The icon name
string
required
Color of the notification
number
required
Duration in milliseconds
number
required
enables the stars for quality like animal pelt stars
boolean
required
shows the quality of the notification
NotifyBottomRight
NotifyBottomRight
NotifyFail
NotifyFail
NotifyDead
NotifyDead
NotifyUpdate
NotifyUpdate
NotifyWarning
NotifyWarning
NotifyLeftRank
NotifyLeftRank
NotifyOneSimpleTop
NotifyOneSimpleTop
NotifyThreeSimpleTop
NotifyThreeSimpleTop
Characters
Get the character data to access getters and settersServer
getUsedCharacter
getUsedCharacter
integer
required
The player ID
- getters
- setters
identifier
identifier
string
The unique identifier of the character
charIdentifier
charIdentifier
string
The unique character identifier
group
group
string
The group the character belongs to
multiJobs
multiJobs
table
The multiJobs of the character
job
job
string
The job of the character
jobGrade
jobGrade
integer
The job grade of the character
jobLabel
jobLabel
string
The job label of the character
money
money
number
The amount of money the character has
gold
gold
number
The amount of gold the character has
rol
rol
number
The amount of rol the character has
xp
xp
number
The amount of experience points the character has
firstname
firstname
string
The first name of the character
lastname
lastname
string
The last name of the character
status
status
table
The status of the character
coords
coords
table
The coordinates of the character
isdead
isdead
boolean
Whether the character is dead or not
skin
skin
table
The skin details of the character
comps
comps
table
The component details of the character
compTints
compTints
table
The component tints of the character
age
age
number
The age of the character
gender
gender
string
The gender of the character
charDescription
charDescription
string
The description of the character
nickname
nickname
string
The nickname of the character
invCapacity
invCapacity
number
The inventory capacity of the character
skills
skills
table
The skills of the character
Users
Get the user data to access getters and settersgetUser
getUser
number
required
The player ID
setMaxJobsAllowed
setMaxJobsAllowed
number
required
The maximum number of jobs allowed for the user
- getters
- setters
Whitelist
Server
- getters
- setters
getEntry
getEntry
string
required
The identifier of the whitelist entry
Webhooks
Shared
AddWebhook
AddWebhook
Instancing
Client
Player
Available through core exportServer Side
when using these functions you will benefit of the event listeners
when using these functions you will benefit of the event listeners
OnPlayerDeath OnPlayerRevive OnPlayerRespawnHeal
Heal
integer
required
The player ID
Revive
Revive
integer
required
The player ID
Respawn
Respawn
integer
required
The player ID
Callbacks
Callbacks are available through core export or single exports- Server
- Client
if you need only the call back system
TriggerAwait
TriggerAwait
TriggerAsync
TriggerAsync
Events
Event Listeners to detect changes in the player state when player job and group changes these events are triggeredServer Side
onGroupChange
onJobChange
onJobGradeChange
onPlayerDeath
when player dies this event is triggeredonPlayerRevive
when player is revived through VORP Core export this event will triggeronPlayerRespawn
when player respawns through VORP Core export this event will triggeronPlayerHeal
when player is healed through VORP Core export this event will triggeronPlayerLevelUp
triggered when a player has leveled up or downonPlayerSpawned
triggered when a player has fully spawned after teleportation and loading screensDataview
call dataview in your script fxmanifestGlobalStates
- easily get players count from client or server
Statebags
statebag getters that allow you to get the character dataShared
- client
- server
IsInSession
IsInSession
is player in session? this will return true when player choose his character
boolean
The IsInSession of the character
FirstName
FirstName
LastName
LastName
Job
Job
JobLabel
JobLabel
Grade
Grade
Group
Group
Age
Age
Gender
Gender
NickName
NickName
CharDescription
CharDescription
Money
Money
Gold
Gold
Rol
Rol
CharId
CharId
