Search the Community
Showing results for tags 'native'.
-
Can you guys add the HAS_PED_BEEN_DAMAGED_BY_WEAPON native as a javascript function like those in Client-side functions? For some reason calling this native (hash 0x2D343D2219CD027A) using mp.game.invoke seems to not work at all. It was supposed to return true/false but instead it just returns the second parameter passed to the invoke() function.
-
- native
- javascript
-
(and 1 more)
Tagged with:
-
Hi, First of all, my intention is not to use natives, but this is part of a testing process for a bigger problem of mine. Let's keep this very simple. In the end I WILL NOT use natives, It's a long story, I prefer to stay on this one small problem that I am at now. So if I use the rage function for `setHeadOverlay` I can add eyebrows on my player, but when I use the same native, somehow nothing happens. mp.players.local.setHeadOverlay(2, 3, 1.0, 27, 27); //Works perfectly // PED::SET_PED_HEAD_OVERLAY mp.game.invoke("0x7EFCF07CD12475BD", mp.players.local.handle, 2, 3, 1.0); // Does nothing // PED::_SET_PED_HEAD_OVERLAY_COLOR //mp.game.invoke("0x147BB6F3C899F76B", mp.players.local.handle, 2, 1, 27, 27); I even tried to add this one after but it doesn't help It's strange because it should just work if the rage function works. There is obviously something I'm doing wrong but I cannot find it. And I haven't been able to talk to anyone who is using it at the moment. This is where I found the hashes for the natives (Thanks McFloy!): https://github.com/Mcfloy/natives/ Thank you, rt-2
- 1 reply
-
- native
- setheadoverlay
-
(and 1 more)
Tagged with: