COMPARE_STRINGS
Hash
0xBFBB74A15EFC149BRuntime name
CompareStringsNamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x1E34710ECD4AB0EBSignature
int COMPARE_STRINGS(const char* str1, const char* str2, BOOL matchCase, int maxLength);Parameters
| Name | Type | Description |
|---|---|---|
str1 | const char* | — |
str2 | const char* | — |
matchCase | BOOL | — |
maxLength | int | — |
Returns int
Usage
local retval = CompareStrings(str1, str2, matchCase, maxLength)
-- always works, by hash
local retval = Citizen.InvokeNative(0xBFBB74A15EFC149B, str1, str2, matchCase, maxLength, Citizen.ResultAsInteger())JavaScript and C#
const retval = CompareStrings(str1, str2, matchCase, maxLength);
// by hash
const retval = Citizen.invokeNative('0xBFBB74A15EFC149B', str1, str2, matchCase, maxLength, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xBFBB74A15EFC149B, str1, str2, matchCase, maxLength);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.