Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This was created with Hydroxide
- local oh_get_gc = getgc or false
- local oh_is_x_closure = is_synapse_function or issentinelclosure or is_protosmasher_closure or is_sirhurt_closure or checkclosure or false
- local oh_get_info = debug.getinfo or getinfo or false
- local oh_set_upvalue = debug.setupvalue or setupvalue or setupval or false
- if not oh_get_gc and not oh_is_x_closure and not oh_get_info and not oh_set_upvalue then
- warn("Your exploit does not support this script")
- return
- end
- local oh_find_function = function(name)
- for i,v in pairs(oh_get_gc()) do
- if type(v) == "function" and not oh_is_x_closure(v) then
- if oh_get_info(v).name == name then
- return v
- end
- end
- end
- end
- function PhantomForcesAmmo(infiniteammo)
- if infiniteammo then
- local oh_fireround = oh_find_function("fireround")
- local oh_index = 1
- local oh_new_value = 101
- local oh_shoot = oh_find_function("shoot")
- local oh_index = 2
- local oh_new_value = 101
- local oh_addammo = oh_find_function("addammo")
- local oh_index = 3
- local oh_new_value = 101
- oh_set_upvalue(oh_fireround, oh_index, oh_new_value)
- oh_set_upvalue(oh_shoot, oh_index, oh_new_value)
- oh_set_upvalue(oh_addammo, oh_index, oh_new_value)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement