Comments (33)
this is import as if users want to park there tardis and lock it from outside they cant and that means its easyer for people to steal their tardis
from sonic-screwdriver.
so will this be fixed soon my players get annoyed as there tardis can be stolen
from sonic-screwdriver.
You might be able to help me out with fixing it, do you know if admins/superadmins are still able to use the sonic correctly? Just not normal players
from sonic-screwdriver.
what do you mean none of the ranks can unlock or lock from the outside or link
from sonic-screwdriver.
Not even admins/superadmins? I don't know if you server has any admin roles or anything
from sonic-screwdriver.
not even admins can lock the tardis door it works when its a tardis from q
from sonic-screwdriver.
we use ulx
from sonic-screwdriver.
Can you run this in your server console and let me know what it says?
lua_run PrintTable(hook.GetTable()["CanTool"])
E.g.
] lua_run PrintTable(hook.GetTable()["CanTool"])
> PrintTable(hook.GetTable()["CanTool"])...
PreventToolingOfRagdoll = function: 0x20ef0500
SPropProtection.CanTool = function: 0x20f8dc28
TARDISInt-CanTool = function: 0x215aaee8
no_removing_cars = function: 0x22786ff8
from sonic-screwdriver.
> PrintTable(hook.GetTable()["CanTool"])...
APG_canTool = function: 0x21b24c58
DoorExploit = function: 0x21b39e90
FAdmin_Log = function: 0x21a2ab30
FAdmin_jailed = function: 0x21b40ac8
FPP.Protect.CanTool = function: 0x21bedb70
PermaPropsTool = function: 0x218b3f08
SA_DontTouchYourself = function: 0x0f24bc20
ULibEntToolCheck = function: 0x21180470
ULibPlayerToolCheck = function: 0x0ca8b498
blogs_m_Toolgun_toolused = function: 0x22b0ee40
from sonic-screwdriver.
Okay there's a way to override it which may be useful, what are you looking for - people to only be able to sonic their own tardis? Everyone able to sonic everyone's? Something else?
from sonic-screwdriver.
i want it so they can lock there own tardis doors
from sonic-screwdriver.
how do we overide it
from sonic-screwdriver.
If you create a file in your gmod folder, called something like:
addons/sonic-override/lua/weapons/swep_sonicsd/modules/sv_override.lua
And have the contents be:
print("Sonic override enabled")
SWEP:AddHook("CanTool", "override", function(self, ply, ent)
if ent:GetClass() == "gmod_tardis" and ent:GetCreator()==ply then
return true
end
end)
Then hopefully that will work, let me know
from sonic-screwdriver.
where do i put it i set it out like that nothing happened
from sonic-screwdriver.
How exactly did you set it out? This should be on your server
from sonic-screwdriver.
i made a directry like that so addons/sonic-override/lua/weapons/swep_sonicsd/modules/sv_override.lua
from sonic-screwdriver.
ok did you put that in your server files and reboot the server?
from sonic-screwdriver.
yer
from sonic-screwdriver.
why didnt it work
from sonic-screwdriver.
Can you show a screenshot of the file in it's folder? Also try the updated version of the code in my comment above and see if you get any messages in the server console when trying to sonic the tardis and make sure you check for any errors in the server console related to that file
from sonic-screwdriver.
https://image.ibb.co/cqRDcR/Capture.png
from sonic-screwdriver.
Are you on linux? The start of that path, addons
should be a folder inside your garrysmod server files e.g.
/home/steam/steamapps/common/garrysmod/garrysmod/addons/sonic-override/lua/weapons/swep_sonicsd/modules/sv_override.lua
from sonic-screwdriver.
i am using a host
from sonic-screwdriver.
no errors in console relating to it
from sonic-screwdriver.
Okay, and no output when trying to lock it with the sonic? Where is the addons folder in your host, there should be a folder called garrysmod
near the root with folders like lua
, models
, materials
and addons
- that's where this should be in.
from sonic-screwdriver.
like when you try to lock it does nothing and its in garrysmod addons folder
from sonic-screwdriver.
Can you try to update the file with the edited version above, reboot your server and see if it displays anything in the server console when trying to sonic it and see if it says Sonic override enabled
when the server starts
from sonic-screwdriver.
yer i seen Sonic override enabled in console
from sonic-screwdriver.
Okay does it show anything in the server console when you try to sonic anything?
from sonic-screwdriver.
Weapon [130][swep_sonicsd] Player [1][[MV] Reede]
ServerLog: [FAdmin] Reede (STEAM_0:1:62039985) Attempted to use tool
from sonic-screwdriver.
Ah okay, that makes sense thanks - I've edited the script above again, can you try that one? Again show me the same output from the server console when you sonic it if it doesn't work, but hopefully it does now.
from sonic-screwdriver.
OMG ITS WORKS !!!!!!!!!!!!!!!!
from sonic-screwdriver.
Amazing, okay great - I've edited the script once more to remove the output in the server console if you want to update it. I'll close this issue and leave that script there as a workaround for anyone who wants to use it.
from sonic-screwdriver.
Related Issues (20)
- Add ability to change sound on custom sonics
- What about hold lengenth will Trigger different functions?
- Gmod_button toggle?
- E+R key Combo will make a flashlight/torch?
- Pop gmod_baloons?
- Different hold types for different actions? HOT 1
- Sonic doesn't work as expected. HOT 1
- Third Party Integration HOT 4
- Linking tardis HOT 26
- A way to toggle cloaking on the TARDIS HOT 3
- Doesn't Unlock or lock darkrp doors HOT 6
- [Sonic] A different color for right-clicking
- [Sonic] Reduce pulsing amplitude when activated HOT 1
- [sonic] Context menu HOT 3
- "Give sonic on spawn" setting
- Lock TARDIS teleport coordinates (as 10th did in Utopia)
- Sonic demat shows wrong message when blocked by handbrake HOT 1
- [sonic] Reverse polarity function
- Sonic sprite position is dependent on screen resolution HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonic-screwdriver.