Getting the game build in script?

Hello everyone,

I noticed GetCurrentGameName() in the natives but I am wondering if it is possible to get the current game build like GetCurrentGameBuild(). So I am able to check if someone is on build 2189 or such. If not I would hope this could be added. Thanks!

as far as im aware someone cant be on a seperate build unless specified by the server ex: set sv_enforceGameBuild 2189 but i could be wrong so it would be pointless so add such a feature as the server your playing on would tell you if the server is forcing a build in one of the top corners of your screen

but i would help if they made it as a “debug” thing.

so check if you have the requied gamebuild on, and if not. tell it, in console.

that way people know if there are something wrong and what the error is.

The reason I would use it is for an IPL loader that only loads Cayo Perico or the Casino if you on build 2189.

why “'or” you know if you can IPL load cayo, you can load casino on the same build?

you could check if some car from b2189 is present with IS_MODEL_IN_CDIMAGE - Cfx.re Docs if return true then it is b2189