The open.mp logo
Home
FAQ
Forums
Servers
Partners
Docs
Blog

Component UID Generator

Copy the PROVIDE_UID macro below in to your new component, in place of the default UID provider macro. Each component should have a unique UID, hence the U in UID (Unique IDentifier). The default PROVIDE_UID is invalid and will not compile, to avoid duplicates when creating new components from templates.

Find this placeholder:
PROVIDE_UID(/* UID GOES HERE */);

And replace it with:
PROVIDE_UID(0x140A05F262150F6F);

If you are modifying an existing component still do remember to replace the existing UID, which will be a valid value not a placeholder.

Community

  • Discord
  • Instagram
  • Twitter
  • Twitch
  • YouTube
  • Facebook
  • VK

More

  • SA-MP
  • Blog
  • GitHub