forked from Simnation/Main
33 lines
2.4 KiB
Lua
33 lines
2.4 KiB
Lua
![]() |
-- If you have successfully implemented any code here, please share your results on our Discord to assist other customers using the same scripts :)
|
||
|
-- https://discord.gg/U5YDgbh
|
||
|
function Utils.CustomScripts.givePlayerItem(source,item,amount,metadata)
|
||
|
-- If you've set the config to "other", you need to configure your export here to give player item.
|
||
|
-- Must return true if the item was sent to player or false if not.
|
||
|
-- Remove the error line below after implementing.
|
||
|
error("^3The function for the selected inventory script in the Config has not been implemented: ^1" .. Config.custom_scripts_compatibility.inventory .. "^3. If you're not using any of the pre-built inventories scripts, you'll need to implement it here.^7")
|
||
|
return false
|
||
|
end
|
||
|
|
||
|
function Utils.CustomScripts.givePlayerWeapon(source,item,amount,metadata)
|
||
|
-- If you've set the config to "other", you need to configure your export here to give player weapon.
|
||
|
-- Must return true if the item was sent to player or false if not.
|
||
|
-- Remove the error line below after implementing.
|
||
|
error("^3The function for the selected inventory script in the Config has not been implemented: ^1" .. Config.custom_scripts_compatibility.inventory .. "^3. If you're not using any of the pre-built inventories scripts, you'll need to implement it here.^7")
|
||
|
return false
|
||
|
end
|
||
|
|
||
|
function Utils.CustomScripts.getPlayerItem(source,item,amount)
|
||
|
-- If you've set the config to "other", you need to configure your export here to remove player item.
|
||
|
-- Must return true if the item was removed from player or false if not.
|
||
|
-- Remove the error line below after implementing.
|
||
|
error("^3The function for the selected inventory script in the Config has not been implemented: ^1" .. Config.custom_scripts_compatibility.inventory .. "^3. If you're not using any of the pre-built inventories scripts, you'll need to implement it here.^7")
|
||
|
return false
|
||
|
end
|
||
|
|
||
|
function Utils.CustomScripts.getPlayerWeapon(source,item,amount)
|
||
|
-- If you've set the config to "other", you need to configure your export here to remove player weapon.
|
||
|
-- Must return true if the item was removed from player or false if not.
|
||
|
-- Remove the error line below after implementing.
|
||
|
error("^3The function for the selected inventory script in the Config has not been implemented: ^1" .. Config.custom_scripts_compatibility.inventory .. "^3. If you're not using any of the pre-built inventories scripts, you'll need to implement it here.^7")
|
||
|
return false
|
||
|
end
|