Framework
Our Ks Gift Packaging script is designed to work seamlessly with ESX and QB-Core frameworks without requiring additional modifications, unless specifically needed.
For those not using either of these frameworks, you can configure it to work in a standalone mode. Simply select Standalone in the config.lua
file by setting:
If modifications are required, they can be made within the Ks_Gift_Packaging/Framework/*_Custom.lua
directory.
In
sh_Custom.lua
[shared], youâll find the Framework Initialization for Object Retrieval, where the core framework object is initialized and inventory detectionIn
cl_Custom.lua
[client], youâll find server callback triggers and the notification system setup.In
sv_Custom.lua
[server], there are functions forUsePlayerItem
,RemovePlayerItem
,GivePlayerItem
, andRegisterCallback
, which manage item usage and player interactions.
Last updated