Mido_

RDR3 _SHOW_TOOLTIP

Apr 27th, 2020
2,135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. // https://i.imgur.com/YL5p0Fo.png
  2. // Typescript example, Thx to Disquse
  3.  
  4. const showTooltip = (text: string, duration: number): void => {
  5. const str = Citizen.invokeNative<any>("0xFA925AC00EB830B9", 10, "LITERAL_STRING", text, (Citizen as any).resultAsLong());
  6.  
  7. const struct1 = new DataView(new ArrayBuffer(4 * 4));
  8. struct1.setUint32(0, duration, true);
  9.  
  10. const struct2 = new DataView(new ArrayBuffer(8 + 8));
  11. struct2.setBigUint64(8, BigInt(str), true);
  12.  
  13. Citizen.invokeNative("0x049D5C615BD38BAD", struct1, struct2, 1);
  14. };
Advertisement
Add Comment
Please, Sign In to add comment