natives icon indicating copy to clipboard operation
natives copied to clipboard

Update N_0x83a169eabcdb10a2

Open CritteRo opened this issue 1 year ago • 3 comments

This native is referenced as PED::SET_PED_PHONE_PALETTE_IDX in nativedb: https://alloc8or.re/gta5/nativedb/?n=0x83A169EABCDB10A2

Would be nice to have the native name changed, and also documented, so future users won't need to dig through old code to find the native.

It has 2 params, first param is the ped ID, second is the ID of the phone palette. The pallets mimic the IDs of CELLPHONE_IFRUIT themes:

0=blue,
1=green,
2=red,
3=orange,
4=gray,
5=purple,
6=pink,
7 or more = dark-gray?

Current lua example:

N_0x83a169eabcdb10a2(PlayerPedId(), 3)

Example image of the phone case being changed: image

CritteRo avatar Feb 13 '24 19:02 CritteRo

You are free to PR the modification. You can check this if you never PR a native! If you do something wrong, you'll be told what's the issue and how to fix it :)

Contributions are always welcome in FiveM / RedM.

PsychoShock avatar Feb 15 '24 04:02 PsychoShock

This native is referenced as PED::SET_PED_PHONE_PALETTE_IDX in nativedb: https://alloc8or.re/gta5/nativedb/?n=0x83A169EABCDB10A2

Would be nice to have the native name changed, and also documented, so future users won't need to dig through old code to find the native.

It has 2 params, first param is the ped ID, second is the ID of the phone palette. The pallets mimic the IDs of CELLPHONE_IFRUIT themes:

0=blue,
1=green,
2=red,
3=orange,
4=gray,
5=purple,
6=pink,
7 or more = dark-gray?

Current lua example:

N_0x83a169eabcdb10a2(PlayerPedId(), 3)

Example image of the phone case being changed: image

Should be good, just have to wait until my PR is merged

spacevx avatar Feb 17 '24 17:02 spacevx

This can be close @4mmonium since it was push on https://github.com/citizenfx/natives/pull/993

PsychoShock avatar Apr 25 '24 17:04 PsychoShock