iHamsel Posted February 4, 2021 Share Posted February 4, 2021 Hello, i try to use native-Commands e.g. FREEZE_ENTITY_POSITION (0x428CA6DBD1094446). I doesn't work. Code: mp.game.invoke("0x428CA6DBD1094446", mp.players.local, true); Do I have to write extra code to make it possible these native-Commands? I use RageMP 1.1 Can help me somebody? Link to comment Share on other sites More sharing options...
MrPancakers Posted February 5, 2021 Share Posted February 5, 2021 Extra code isn't needed to use natives no Also why not use the API? https://wiki.rage.mp/index.php?title=Entity::freezePosition Link to comment Share on other sites More sharing options...
iHamsel Posted February 5, 2021 Author Share Posted February 5, 2021 (edited) I chose the freeze-command as a example. I know that it's included in the API. It worked now. mp.game.invoke("0x428CA6DBD1094446", mp.players.local.handle, true); I want to use native-commands also server-side. Is this possible? For example this doesnt work: [Command("test")] public void CMD_test(Player player) { NAPI.Native.SendNativeToPlayer(player, 0x428CA6DBD1094446, player.Handle, true); } Any hints whats wrong with this? Hash must be correct (is the same as above). When I change it to an incorrect Hash, a error message displays => native command must be executed, but not correctly. Or is this impossible? Edited February 5, 2021 by iHamsel Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now