Skip to content

Commit

Permalink
feat: qbx lib
Browse files Browse the repository at this point in the history
  • Loading branch information
BerkieBb authored Jan 20, 2024
1 parent caa23ad commit 29edd03
Showing 1 changed file with 44 additions and 71 deletions.
115 changes: 44 additions & 71 deletions .luacheckrc.template
Original file line number Diff line number Diff line change
Expand Up @@ -155,80 +155,53 @@ stds.qbox_playerdata = {
}
}

stds.qbox_utils = {
stds.qbox_lib = {
globals = {
math = {
qbx = {
fields = {
"round"
}
},
string = {
fields = {
"split",
"trim",
"firstToUpper"
armsWithoutGloves = {
fields = {
"male",
"female"
}
},
string = {
fields = {
"trim",
"capitalize"
}
},
math = {
fields = {
"round"
}
},
table = {
fields = {
"mapBySubfield"
}
},
"getVehiclePlate",
"generateRandomPlate",
"getCardinalDirection",
"spawnVehicle",
"drawText2d",
"drawText3d",
"getEntityAndNetIdFromBagName",
"entityStateHandler",
"deleteVehicle",
"getVehicleDisplayName",
"getVehicleMakeName",
"getStreetName",
"getZoneName",
"setVehicleExtra",
"resetVehicleExtras",
"setVehicleExtras",
"isWearingGloves",
"loadAudioBank",
"playAudio"
}
},
},
read_globals = {
"GetCoordsFromEntity",
"GetPlate",
"DebugPrint",
"CommaValue",
"RandomLetter",
"RandomNumber",
"RandomNumberOrLetter",
"GenerateRandomPlate",
"HasItem"
}
}

stds.qbox_utils_sv = {
read_globals = {
"SpawnVehicle",
"KickWithReason",
"IsLicenseInUse"
}
}

stds.qbox_utils_cl = {
read_globals = {
"DrawText2D",
"DrawText3D",
"WaitFor",
"GetEntityAndNetIdFromBagName",
"EntityStateHandler",
"PlayAnim",
"GetEntities",
"GetVehicles",
"GetObjects",
"GetPeds",
"GetPickups",
"GetPlayersInScope",
"GetClosestEntity",
"GetClosestPed",
"GetClosestObject",
"GetClosestPlayer",
"GetPlayersFromCoords",
"GetClosestBone",
"GetBoneDistance",
"AttachProp",
"GetVehicleDisplayName",
"GetVehicleMakeName",
"IsVehicleSpawnClear",
"StartParticleAtCoord",
"StartParticleOnEntity",
"GetStreetNameAtCoords",
"GetZoneAtCoords",
"GetCardinalDirection",
"GetCurrentTime",
"GetGroundZCoord",
"ClearAllVehicleExtras",
"ChangeVehicleExtra",
"SetVehicleExtras",
"MaleNoGloves",
"FemaleNoGloves",
"IsWearingGloves"
}
}
}

Expand Down

0 comments on commit 29edd03

Please sign in to comment.