Skip to content

Commit

Permalink
Merge pull request #17 from BerkieBb/v2
Browse files Browse the repository at this point in the history
feat(luacheckrc): undocumented citizen natives
  • Loading branch information
TheiLLeniumStudios committed Aug 20, 2024
2 parents a9082ff + d96987d commit 66ce2e4
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions .luacheckrc.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,33 @@ stds.cfx = {
read_globals = {
Citizen = {
fields = {
"Wait", "CreateThread", "SetTimeout", "Await", "Trace",
"InvokeNative", "PointerValueIntInitialized", "PointerValueFloatInitialized"
"Wait",
"Await",
"CreateThread",
"CreateThreadNow",
"SetTimeout",
"SetTickRoutine",
"SetEventRoutine",
"Trace",
"InvokeNative",
"PointerValueInt",
"PointerValueIntInitialized",
"PointerValueFloat",
"PointerValueFloatInitialized",
"PointerValueVector",
"ResultAsFloat",
"ResultAsInteger",
"ResultAsLong",
"ResultAsObject",
"ResultAsString",
"ResultAsVector",
"ReturnResultAnyway",
"CanonicalizeRef",
"SetCallRefRoutine",
"SetDeleteRefRoutine",
"SetDuplicateRefRoutine",
"GetFunctionReference",
"InvokeFunctionReference"
}
},
exports = { other_fields = true },
Expand All @@ -20,7 +45,7 @@ stds.cfx = {
"Await",
"Trace",
"quat",
"vec",
"vector", "vec",
"vector2", "vec2",
"vector3", "vec3",
"vector4", "vec4",
Expand All @@ -35,7 +60,6 @@ stds.cfx = {
utf8 = { fields = { "strlenutf8", "strcmputf8i" } },
msgpack = { fields = { "extend", "extend_clear", "extend_get", "getoption", "gettype", "new", "next", "null", "pack", "pack_args", "safe", "sentinel", "packers", "set_array", "set_integer", "set_number", "set_string", "setoption", "settype", "unpack" } },
"scrub",
"vector",
"mat",
"mat2",
"mat3",
Expand Down

0 comments on commit 66ce2e4

Please sign in to comment.