example
example

求助 wasabi_police 連動 pickle_prisons

sway1314

新用户
认证用户
黄金
56.63 黄金
--Send to jail
RegisterNetEvent('pickle_prisons:sendToJail', function(target, time)
-- Add your jail event trigger here? WILL BE ADDING BUILT IN JAIL SYSTEM SOON!
-- 'target' = Server ID of target / 'time' minutes input for months
print('Jailing '..target..' for '..time..' minutes')
end)
 
我也没用过你说的这个插件,最好的方法肯定是找客服。

其次,你给的函数应该是不对的,把玩家放进监狱肯定是police插件的操作,正确的顺序应该是police插件调用监狱插件,所以你需要做的是在警察插件里边找到哪里有监禁的操作,然后把原有的监禁操作改成新的监狱所支持的操作。你所发的这个这个函数:pickle_prisons:sendToJail,他可能是你在police插件里边需要去调用的,不知道怎么写就看教程里如何调用事件的。


还有就是不要回复论坛的自动邮件,要回复也是来论坛回复,不然我可能看不见。
 
后退
顶部