-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DarkRP can tool doesn't work correctly #13
Comments
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 |
so will this be fixed soon my players get annoyed as there tardis can be stolen |
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 |
what do you mean none of the ranks can unlock or lock from the outside or link |
Not even admins/superadmins? I don't know if you server has any admin roles or anything |
not even admins can lock the tardis door it works when its a tardis from q |
we use ulx |
Can you run this in your server console and let me know what it says?
E.g.
|
|
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? |
i want it so they can lock there own tardis doors |
how do we overide it |
If you create a file in your gmod folder, called something like: 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 |
where do i put it i set it out like that nothing happened |
How exactly did you set it out? This should be on your server |
i made a directry like that so addons/sonic-override/lua/weapons/swep_sonicsd/modules/sv_override.lua |
ok did you put that in your server files and reboot the server? |
yer |
why didnt it work |
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 |
Are you on linux? The start of that path, |
i am using a host |
no errors in console relating to it |
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 |
like when you try to lock it does nothing and its in garrysmod addons folder |
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 |
yer i seen Sonic override enabled in console |
Okay does it show anything in the server console when you try to sonic anything? |
Weapon [130][swep_sonicsd] Player [1][[MV] Reede] ServerLog: [FAdmin] Reede (STEAM_0:1:62039985) Attempted to use tool |
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. |
OMG ITS WORKS !!!!!!!!!!!!!!!! |
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. |
CanTool hook seems to return false in DarkRP for some reason meaning the sonic can't link with the TARDIS and do other things.
The text was updated successfully, but these errors were encountered: