Garry's Mod

Garry's Mod

PlayerPickup (Pick Up Players / Grab Players)
lnɐԀ 10 Apr, 2018 @ 12:36pm
How to make it only Admin
Help
< >
Showing 1-10 of 10 comments
Drab228 14 Aug, 2019 @ 12:23pm 
+
lnɐԀ 14 Aug, 2019 @ 3:34pm 
tanks bro it halp
sadie! <3 16 Nov, 2019 @ 8:42am 
+
BigJoe 26 Apr, 2020 @ 5:42am 
how do you make it admin only? do i have to press plus or idk
lnɐԀ 30 Apr, 2020 @ 6:56pm 
idk it just fixed itself try reinstalling it
Aly  [developer] 16 Aug, 2020 @ 12:55pm 
The whole point is for it not to be admin only. If you need admin only, use ULX.
Hailey 1 Oct, 2020 @ 8:23pm 
I know this is old, but here is code: local function PlayerPickup(ply, ent)
if ply:IsAdmin() then
if (ent:GetClass():lower() == "player") then
return true
end
end
end
hook.Add("PhysgunPickup", "Allow Player Pickup", PlayerPickup)
TUA_Bowsette 19 Jul, 2021 @ 5:48pm 
Originally posted by Yuri:
I know this is old, but here is code: local function PlayerPickup(ply, ent)
if ply:IsAdmin() then
if (ent:GetClass():lower() == "player") then
return true
end
end
end
hook.Add("PhysgunPickup", "Allow Player Pickup", PlayerPickup)
Do I put that in notepad then save it as a lua file?
Originally posted by Kyoko_Kirigiri:
Originally posted by Yuri:
I know this is old, but here is code: local function PlayerPickup(ply, ent)
if ply:IsAdmin() then
if (ent:GetClass():lower() == "player") then
return true
end
end
end
hook.Add("PhysgunPickup", "Allow Player Pickup", PlayerPickup)
Do I put that in notepad then save it as a lua file?
Yes
Originally posted by Kyoko_Kirigiri:
Originally posted by Yuri:
I know this is old, but here is code: local function PlayerPickup(ply, ent)
if ply:IsAdmin() then
if (ent:GetClass():lower() == "player") then
return true
end
end
end
hook.Add("PhysgunPickup", "Allow Player Pickup", PlayerPickup)
Do I put that in notepad then save it as a lua file?
C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\lua\autorun\server\admin_functions.lua
< >
Showing 1-10 of 10 comments
Per page: 1530 50