Mido_

RDR3 _SHOW_OBJECTIF

Apr 27th, 2020
1,452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // JS Example :
  2.  
  3. function showObjectif(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((4 * 2) + 8));
  12. struct2.setBigInt64(8, BigInt(string), true);
  13.  
  14. Citizen.invokeNative("0xCEDBF17EFCC0E4A4", struct1, struct2, 1);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment