We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da0ada4 + 9d88004 commit 072d988Copy full SHA for 072d988
lua/custom_loadout/sv_main.lua
@@ -19,9 +19,11 @@ function CLoadout:IsAvailableForPlayer( ply )
19
if ply.GetBuild and ply:GetBuild() then
20
return false, "Your loadout will be applied once you leave build mode."
21
end
22
+
23
+ local canuse, reason = hook.Run( "CLoadoutCanGiveWeapons", ply )
24
- if hook.Run( "CLoadoutCanGiveWeapons", ply ) == false then
- return false
25
+ if canuse == false then
26
+ return false, reason
27
28
29
return true
0 commit comments