Page cover

Installation

Make sure dirk-core is ensured after any framework/target system or inventory and before any of the scripts that use it.

Resource Detection

Dirk-Core will automatically detect dependencies you are using if you have renamed a common resource that is supported by our library then you will need to change like so

This is under usersettings/config.lua, in this example we have renamed qb-inventory to mynew_inventory it'll have the same functionality as qb-inventory but with the different name.

Saved Data

There is a folder called saveddata within the main directory this will be used by other scripts to save data so if you have anything you wish to save please keep this folder and its contents while updating

SQL

You will need to change the fxmanifest.lua depending on which SQL script you use please change as instructed within this file.

Auto Add Items

If you are using a version of QBCore with AddItem and AddItems exports you can turn this feature on and you will not have to add any items to your shared.lua that are required in my scripts If you are using ESX then you can use auto-add items to inject SQL into your items table again you will not have to add any items from my scripts in the future

Event Logger

If you are having issues with server to client mass events you can try using my event logger to log your most commonly spammed events. You will need to make edits to your scheduler.lua within your servers artifacts. citizen/scripting/lua/scheduler.lua

  -- ORIGINAL
	function TriggerClientEvent(eventName, playerId, ...)
          local payload = msgpack_pack_args(...)
	  return TriggerClientEventInternal(eventName, playerId, payload, payload:len())
	end
  -- NEW

        function TriggerClientEvent(eventName, playerId, ...)
  	   local payload = msgpack_pack_args(...)
           TriggerEvent("Dirk-Core:saveEventLogs", {
             eventName = eventName,
             payload = payload:len(),
             playerId = playerId
            })
            return TriggerClientEventInternal(eventName, playerId, payload, payload:len())
	 end

Last updated