Hey there, I am Zak C. Owner of SADPS
so this is my first script, hope you like it!
Gonna make it short and sweet
In chat if you do
/run , It will show up as this:
If you do /vs , It shows up as this:
If you do /ps , it shows up as this:

You may edit the script, but as always credit me!
(You can use the clr weapons one without perm)
I am working on a panic button aswell!
And finally if you do /clearweapons it, clears your weapons
All credit goes to @ZackJ for making the clear weapon script,
But i done the rest!
Any issues let me know, and finally the download!!!
1 Like
Please upload your scripts to Github, that much better.
1 Like
ZackJ
4
Clear Weapon Script is free to use without credit. The command for it is /clearweapons , all it does is remove all your weapons out of your inventory.
hmm okay script but im not gonna use this on my server
BigYoda
6
Please, Use RegisterCommand and why is it there 2 alert functions which are not even being used…
Why release them if we need permission to use them?
Why have you uploaded a rar to github? Why are you not using RegisterCommand? Why don’t you set it into a proximity.
GNG2017
9
We can’t use/edit your sripts with persmission? 
Congrats on making your first script, but if you don’t want people to edit your code then I wouldn’t suggest putting it on GitHub, seeing as anyone can fork the repository to make and suggest changes!
Although they won’t be able to do much with that repository, as you’ve put a .rar file into it, a practice which entirely defeats the point of Git and GitHub.
Well i was told to do so by another member, I am new to this so sorry about that
Just putting this script in and starting it I am getting error
Error parsing script server.lua in resource leoscripts: server.lua:30: ')' expected (to close '(' at line 2) near <eof>
Failed to load script server.lua.
I have tried to fix it, but still get error, Can someone please tell me what I am doing wrong? TIA
I put a ) at line 30 did not get the error, but when I launched into the game and did /vs I receive this error
Error running system event handling function for resource leoscripts: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server.lua:3: attempt to call a nil value (global 'stringsplit')
stack traceback:
server.lua:3: in upvalue 'handler'
citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218>
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
citizen:/scripting/lua/scheduler.lua:218: in function <citizen:/scripting/lua/scheduler.lua:182>
Replace your server.lua contents with
AddEventHandler('chatMessage', function(source, name, msg)
sm = stringsplit(msg, " ");
if sm[1] == "/run" then
CancelEvent()
TriggerClientEvent('chatMessage', -1, "Officer runs name, plate and other info, what comes back?" , { 128, 128, 128 }, string.sub(msg,5))
end
if sm[1] == "/vs" then
CancelEvent()
TriggerClientEvent('chatMessage', -1, "Officer searches vehicle. (What does he find)" , { 128, 128, 128 }, string.sub(msg,5))
end
if sm[1] == "/ps" then
CancelEvent()
TriggerClientEvent('chatMessage', -1, "Officer searches person. (What does he find?)" , { 128, 128, 128 }, string.sub(msg,5))
end
if sm[1] == "/rsp" then
CancelEvent()
TriggerClientEvent("chatMessage", -1, "An officer is en route to the 911 call", {255, 255, 255}, string.sub(msg,6))
end
local t={} ; i=1
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
t[i] = str
i = i + 1
end
return t
end)
Ok so the server.lua loads now, but then when i go to use the commands in game I get this error
Error running system event handling function for resource leoscripts: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server.lua:2: attempt to call a nil value (global 'stringsplit')
stack traceback:
server.lua:2: in upvalue 'handler'
citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218>
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
citizen:/scripting/lua/scheduler.lua:218: in function <citizen:/scripting/lua/scheduler.lua:182>
Nghts
17
“Do not edit/use any of my scripts without permission!”
Huh? So, the script is public yet we cant use or edit the script without asking you???
Syntasu
18
You know there are things like RegisterCommand that exist right? So you don’t have to specify your own string split function and have 20 if this than that’s in your code…
1 Like
Sorry lol (It is me) Sorry yeah i was messed up when posting this lol sorry
I have fixed it, how would i use the “registercommand” part?