Is there any possibilities to block FiveM natives with a script?
I tried to block “GiveWeaponToPed”, but it just blocks it from the specific script not from the every script on server.
GiveWeaponToPed = function(...)
print("test")
end
Is there any possibilities to block FiveM natives with a script?
I tried to block “GiveWeaponToPed”, but it just blocks it from the specific script not from the every script on server.
GiveWeaponToPed = function(...)
print("test")
end
No, there’s no real way to “block” a native from being used. You can replace the native definition in every script but it can still be used by manual invoking it anyways.
I asked for some similar feature a while ago, but since people just want to do stuff for “anticheating”-purposes it was kinda abandoned
Wonder if the idea is still viable, I’d love to be able to add complex logic on-top of existing stuff using overrides and hooks.
It would be quite useful I imagine - or just a way to disable certain natives outright. It’s complex enough that people who dont know what they’re doing won’t bother, while those who are experienced enough will indeed put it to good use