Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mt = getrawmetatable(game)
- local old = mt.__namecall
- setreadonly(mt, false)
- mt.__namecall =
- newcclosure(
- function(remote, ...)
- args = {...}
- method = tostring(getnamecallmethod())
- if method == "FireServer" and tostring(remote) == "UseMoney" and tonumber(args[3]) then
- args[3] = 0
- return old(remote, unpack(args))
- end
- return old(remote, ...)
- end
- )
- setreadonly(mt, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement