Mido_

RDR3 DisplayLeftNotification

Apr 27th, 2020
2,986
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. // https://imgur.com/AAMq5II
  2. // JS example :
  3.  
  4. function DisplayLeftNotification(title, subTitle, iconDict, icon, duration) {
  5. const struct1 = new DataView(new ArrayBuffer(4 * 4));
  6. struct1.setInt32(0, duration, true);
  7.  
  8. const string1 = CreateVarString(10, "LITERAL_STRING", title);
  9. const string2 = CreateVarString(10, "LITERAL_STRING", subTitle);
  10.  
  11. const struct2 = new DataView(new ArrayBuffer(48));
  12. struct2.setBigInt64(8, BigInt(string1), true);
  13. struct2.setBigInt64(16, BigInt(string2), true);
  14. struct2.setBigInt64(32, BigInt(GetHashKey(iconDict)), true);
  15. struct2.setBigInt64(40, BigInt(GetHashKey(icon)), true);
  16.  
  17. Citizen.invokeNative("0x26E87218390E6729", struct1, struct2, 1, 1);
  18. }
  19. DisplayLeftNotification(
  20. 'French bagette',
  21. 'Hi from France :)',
  22. 'HUD_TOASTS',
  23. 'toast_player_deadeye',
  24. 10000
  25. )
Advertisement
Add Comment
Please, Sign In to add comment