Can I call an event on other script?, for example
script.js from other resource (not policejob)
function cuff() {
$.post("http://qb-policejob/police:client:CuffPlayerSoft", JSON.stringify({}));
}
Can I call an event on other script?, for example
script.js from other resource (not policejob)
function cuff() {
$.post("http://qb-policejob/police:client:CuffPlayerSoft", JSON.stringify({}));
}
Typically when i make my little projects I do
Server-side(lua):
AddEventHandler('police:client:CuffPlayerSoft', function()
---code what you want to happen when the event is triggered
end)
This typically works for me.