Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // https://i.imgur.com/YL5p0Fo.png
- // Typescript example, Thx to Disquse
- const showTooltip = (text: string, duration: number): void => {
- const str = Citizen.invokeNative<any>("0xFA925AC00EB830B9", 10, "LITERAL_STRING", text, (Citizen as any).resultAsLong());
- const struct1 = new DataView(new ArrayBuffer(4 * 4));
- struct1.setUint32(0, duration, true);
- const struct2 = new DataView(new ArrayBuffer(8 + 8));
- struct2.setBigUint64(8, BigInt(str), true);
- Citizen.invokeNative("0x049D5C615BD38BAD", struct1, struct2, 1);
- };
Advertisement
Add Comment
Please, Sign In to add comment