Mido_

RDR3 _SHOW_NOTIFICATION

Apr 27th, 2020
1,605
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. // JS Example :
  2.  
  3. function showNotification(text, duration) {
  4. // int32 x4
  5. const struct1 = new DataView(new ArrayBuffer(4 * 4));
  6. struct1.setInt32(0, duration, true); // duration
  7.  
  8. const string = CreateVarString(10, "LITERAL_STRING", text);
  9.  
  10. // int32 (weird padding) + int32 + uint64
  11. const struct2 = new DataView(new ArrayBuffer(100));
  12. struct2.setBigInt64(8, BigInt(string), true);
  13. struct2.setBigInt64(16, BigInt(string), true);
  14. console.log('in')
  15.  
  16. Citizen.invokeNative("0xC927890AA64E9661", struct1, struct2, 1, 1);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment