Git Product home page Git Product logo

Comments (33)

reede2 avatar reede2 commented on August 12, 2024

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.

reede2 avatar reede2 commented on August 12, 2024

so will this be fixed soon my players get annoyed as there tardis can be stolen

from sonic-screwdriver.

MattJeanes avatar MattJeanes commented on August 12, 2024

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.

reede2 avatar reede2 commented on August 12, 2024

what do you mean none of the ranks can unlock or lock from the outside or link

from sonic-screwdriver.

MattJeanes avatar MattJeanes commented on August 12, 2024

Not even admins/superadmins? I don't know if you server has any admin roles or anything

from sonic-screwdriver.

reede2 avatar reede2 commented on August 12, 2024

not even admins can lock the tardis door it works when its a tardis from q

from sonic-screwdriver.

reede2 avatar reede2 commented on August 12, 2024

we use ulx

from sonic-screwdriver.

MattJeanes avatar MattJeanes commented on August 12, 2024

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.

reede2 avatar reede2 commented on August 12, 2024
> 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.

MattJeanes avatar MattJeanes commented on August 12, 2024

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.

reede2 avatar reede2 commented on August 12, 2024

i want it so they can lock there own tardis doors

from sonic-screwdriver.

reede2 avatar reede2 commented on August 12, 2024

how do we overide it

from sonic-screwdriver.

MattJeanes avatar MattJeanes commented on August 12, 2024

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.

reede2 avatar reede2 commented on August 12, 2024

where do i put it i set it out like that nothing happened

from sonic-screwdriver.

MattJeanes avatar MattJeanes commented on August 12, 2024

How exactly did you set it out? This should be on your server

from sonic-screwdriver.

reede2 avatar reede2 commented on August 12, 2024

i made a directry like that so addons/sonic-override/lua/weapons/swep_sonicsd/modules/sv_override.lua

from sonic-screwdriver.

MattJeanes avatar MattJeanes commented on August 12, 2024

ok did you put that in your server files and reboot the server?

from sonic-screwdriver.

reede2 avatar reede2 commented on August 12, 2024

yer

from sonic-screwdriver.

reede2 avatar reede2 commented on August 12, 2024

why didnt it work

from sonic-screwdriver.

MattJeanes avatar MattJeanes commented on August 12, 2024

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.

reede2 avatar reede2 commented on August 12, 2024

https://image.ibb.co/cqRDcR/Capture.png

from sonic-screwdriver.

MattJeanes avatar MattJeanes commented on August 12, 2024

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.

reede2 avatar reede2 commented on August 12, 2024

i am using a host

from sonic-screwdriver.

reede2 avatar reede2 commented on August 12, 2024

no errors in console relating to it

from sonic-screwdriver.

MattJeanes avatar MattJeanes commented on August 12, 2024

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.

reede2 avatar reede2 commented on August 12, 2024

like when you try to lock it does nothing and its in garrysmod addons folder

from sonic-screwdriver.

MattJeanes avatar MattJeanes commented on August 12, 2024

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.

reede2 avatar reede2 commented on August 12, 2024

yer i seen Sonic override enabled in console

from sonic-screwdriver.

MattJeanes avatar MattJeanes commented on August 12, 2024

Okay does it show anything in the server console when you try to sonic anything?

from sonic-screwdriver.

reede2 avatar reede2 commented on August 12, 2024

Weapon [130][swep_sonicsd] Player [1][[MV] Reede]

ServerLog: [FAdmin] Reede (STEAM_0:1:62039985) Attempted to use tool

from sonic-screwdriver.

MattJeanes avatar MattJeanes commented on August 12, 2024

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.

reede2 avatar reede2 commented on August 12, 2024

OMG ITS WORKS !!!!!!!!!!!!!!!!

from sonic-screwdriver.

MattJeanes avatar MattJeanes commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.