Custom Framework - Client
Framework check
At the top of the file, add a check for Config.Framework. If it's not set to your framework, return to prevent it from loading.
if Config.Framework ~= "your-framework" then
return
endFramework functions
You need to implement the following functions for the racing script to work with your framework.
HasItem
Check if the player has an item in their inventory.
---@param itemName string
---@return boolean
function HasItem(itemName)
if GetResourceState("ox_inventory") == "started" then
return (exports.ox_inventory:Search("count", itemName) or 0) > 0
end
-- If you have another inventory, implement it here
return true
end