RSG导出函数用于开发

函数或事件范围描述返回
exports[‘rsg-core’]:AddItem(itemName, item)ServerAccepts an item name and item object – will add new entry to RSGCore.Shared.Itemsboolean, string
exports[‘rsg-core’]:AddJob(jobName, job)ServerAccepts an job name and job object – will add new entry to RSGCore.Shared.Jobsboolean, string
exports[‘rsg-core’]:AddGang(gangName, gang)ServerAccepts an gang name and gang object – will add new entry to RSGCore.Shared.Gangsboolean, string
exports[‘rsg-core’]:AddItems(items)ServerAccepts a table or array – will loop through the table and add new entries to RSGCore.Shared.Itemsboolean, string, errorItem
exports[‘rsg-core’]:AddJobs(jobs)ServerAccepts a table or array – will loop through the table and add new entries to RSGCore.Shared.Jobsboolean, string, errorItem
exports[‘rsg-core’]:AddGangs(gangs)ServerAccepts an item name and item object – will add new entry to RSGCore.Shared.Itemsboolean, string, errorItem
RSGCore.Functions.AddItem(itemName, item)ServerAccepts an item name and item object – will add new entry to RSGCore.Shared.Itemsboolean, string
RSGCore.Functions.AddJob(jobName, Job)ServerAccepts an job name and job object – will add new entry to RSGCore.Shared.Jobsboolean, string
RSGCore.Functions.AddGang(gangName, gang)ServerAccepts an gang name and gang object – will add new entry to RSGCore.Shared.Gangsboolean, string
RSGCore.Functions.AddItems(items)ServerAccepts a table or array – will loop through the table and add new entries to RSGCore.Shared.Itemsboolean, string, errorItem
RSGCore.Functions.AddJobs(jobs)ServerAccepts a table or array – will loop through the table and add new entries to RSGCore.Shared.Jobsboolean, string, errorItem
RSGCore.Functions.AddGangs(gangs)ServerAccepts a table or array – will loop through the table and add new entries to RSGCore.Shared.Gangsboolean, string, errorItem

温馨提示: 本文最后更新于2025-05-21 20:59:07,某些文章具有时效性,若有错误或已失效,请在下方留言或联系RedM新手社区
本站代码模板仅供学习交流使用请勿商业运营,严禁从事违法,侵权等任何非法活动,否则后果自负!
THE END
喜欢就支持一下吧
点赞5 分享
评论 共8条

请登录后发表评论