DirkScripts Logo

Login With FiveM

Login

πŸ–₯️ Dirk Core
β€Ί
Functions
β€Ί
Client
β€Ί

🚢 Player

🚢 Player

Ready

lua
--## Used instead of playerLoaded events
Citizen.CreateThread(function()
  while not Core do Wait(500); end
  while not Core.Player.Ready() do Wait(500); end
  print('Hello World')
  --## This print will execute when the player has gotten past the multi-char and is in-game
end)

Job

lua
local myJob = Core.Player.Job()

--[[
returns;
{
    name   = "job_name",
    label  = "Job Label", 
    rank   = 2, 
    rankL  = "Rank Label", 
    duty   = true, 
    isBoss = false,
    isCop  = true, 
}
]]

Identifier

lua
local characterID = Core.Player.Identifier()
--## Returns characterID dependant on framework e.g QBCore - CitizenID | ESX - CharID

Gang

lua
local gangName = Core.Player.Gang()
--## Will simply return gang_name if using qb-core. May add rcore_gangs support

IsCop

lua
local isCop = Core.Player.IsCop()
--## Returns true if player is a cop

GetJob

lua
local myJob = Core.Player.GetJob()
--## Will return the same as Core.Player.Job() but will make sure table is up to date by gathering the job

Job Change Event

lua
AddEventHandler("Dirk-Core:JobChange", function(job)
    --## job; is the same return as GetJob() and Job() this event will run if the framework fires the job change event 
end)

PlayAnim

lua
Core.Player.PlayAnim({
    ent    = entity, 
    dict   = "anim_dict", 
    anim   = "anim_name", 
    freeze = true,
    time   = 10000,  
})

--## This will load the anim dict for you

Copyright Β© 2026 DirkScripts.

Not affiliated with or endorsed by Rockstar North, Take-Two Interactive, or any other rights holders. FiveM is a copyright and registered trademark of Take-Two Interactive Software, Inc.
Our checkout system is provided by Tebex Limited, who manage payment processing, product delivery, and billing support. Prices shown in currencies other than GBP are approximate conversions updated daily. All purchases are processed in GBP, so the final amount charged may vary depending on your bank or payment provider’s exchange rate.

Daily dig available!

Hey you, you have free digs waiting

Dig Now