AI Core

ai-smallresources

Many small gameplay features, each behind its own panel switch, plus teleports, elevators, seats, moorings and Discord Rich Presence.

ai-smallresources collects the small features most servers want: a seatbelt, cruise control, crouching, pointing, hands up, sitting on benches, carrying players, small items, GTA world tweaks, population density, teleports, elevators and Discord Rich Presence. Every feature has its own switch in the panel, so you turn off what another script already does.

What it does in the game

Driving

  • Seatbelt (K): a buckled player cannot leave the vehicle and survives faster crashes. Without the belt, a crash above the panel's speed throws the driver through the windscreen. HUDs show the belt state.
  • Cruise control (Y): holds the current speed as the vehicle's top speed until pressed again.
  • No seat shuffle, no vehicle radio, no mouse steering for land vehicles and boats, no steering in the air (a jump lands the way it took off).
  • Fake plate item (fakeplate): fits a random plate on a vehicle you have the keys to (a 6 second bar facing the vehicle); using it again puts the real plate back. Garages keep the real plate.
  • Boat rope: on foot next to a boat within 12 m of a mooring (Moorings tab), Tie the boat to the dock freezes it so it cannot drift or be driven off; Untie the boat frees it.

Player

  • Crouch (Left Ctrl), Point with finger (B, everyone sees it), Hands up (X, also in a vehicle), Fall over (hold M on foot).
  • Sit on objects: chairs, benches and stools from the Seats tab (364 models come ready) get a Sit down prompt; X stands up. With a target script running, the seats use the target eye instead of a prompt.
  • Carry players: the radial menu's Carry item picks up the nearest player over the shoulder, or puts them down. A downed or cuffed player is picked up at once; anyone else is asked first (10 seconds to answer). After a refusal you wait 30 seconds before asking again.
  • Tackle (G while sprinting): knocks down the player right in front.
  • Block corner peeking, sprint indoors, no automatic helmet, hats stay on, no idle camera, AFK kick after the panel's minutes (admins are never kicked).

Combat

  • No combat stance after a fight, no pistol whip, no blind peeking from cover, optional no one shot headshots, no bunny hopping, no GTA pickups, no weapons from vehicles.

Items

  • binoculars: a zoom camera (mouse wheel zooms, Backspace puts them away).
  • firework1 to firework4: placed on the ground (3 second bar), they go off after 5 seconds; players within 400 m see them.
  • notepad: writes a page that becomes a note item; using the note shows its text (the inventory tooltip shows it too).
  • newscam, newsmic, newsboom: the news crew props, held in the hand and seen by everyone. With the camera, H switches to the news camera view.
  • diving_gear: puts an air tank and mask on or takes them off; while worn the player breathes underwater until the tank is empty. diving_fill refills the tank. Air is kept per character and spent only underwater.

World and population

  • No GTA wanted level or AI police, no GTA police and emergency vehicles or NPCs, areas without GTA-parked vehicles (hospitals, police stations, the prison, bases), no GTA planes, no police radio, quiet city sounds, hidden GTA HUD parts, no garbage trucks.
  • Pedestrian, scenario people, traffic and parked car density in percent.

Places

  • Teleports: a prompt at both ends (Go: ...) takes the player to the other end. Two come ready (Weazel News office, Coke processing).
  • Elevators: a prompt on every floor (...: choose a floor) lists the others. One comes ready (Humane Labs).

Discord Rich Presence: your application's name, pictures, two text lines with live placeholders and up to two link buttons on every player's Discord profile.

Installation

Installed by the AI Core recipe. By hand: ensure ai-smallresources after ai-core.

The items must exist in your inventory's item list: binoculars, firework1, firework2, firework3, firework4, newscam, newsmic, newsboom, fakeplate, notepad, note, diving_gear, diving_fill (ai-inventory has them).

Panel settings

Admin panel > Small features. Six tabs. Defaults are from data/settings.json.

Tab: Features

Small gameplay features, each with its own switch.

Driving

Seatbelt, cruise control, seats, radio, plates and boats.

SettingWhat it changesUnitDefault
SeatbeltK buckles up in cars; a buckled player cannot leave the vehicle and survives faster crashes.on / offon
Thrown out without beltA crash above this speed throws the driver through the windscreen. 0-500.km/h20
Thrown out with beltThe same speed for a buckled driver. 0-500.km/h160
Cruise controlY holds the current speed as the vehicle's top speed until pressed again.on / offon
No seat shuffleA passenger stays in their seat when the driver gets out.on / offon
No vehicle radioVehicle radios stay off and the radio wheel does not open.on / offoff
Fake plate itemFits a random plate on a vehicle the player has the keys to; using it on the vehicle again puts the real plate back. Garages keep the real plate.on / offon
Boat ropeOn foot next to a boat near a mooring (Moorings tab), the player ties it so it cannot drift or be driven off, and unties it again.on / offon
No mouse steeringCars, bikes and boats cannot be steered with the mouse. Planes and helicopters still can.on / offon
No steering in the airA car or bike in the air cannot be tilted or rolled with the keys, so a jump lands the way it took off.on / offon

Player

Movement, gestures and idle players.

SettingWhat it changesUnitDefault
CrouchLeft Ctrl toggles a crouched walk.on / offon
No GTA stealth walkLeft Ctrl no longer starts GTA's sneaking walk, so it only crouches.on / offon
Point with fingerB points where the camera looks; everyone sees it. Ends when the player aims, falls or fights.on / offon
Hands upX raises the hands, also in a vehicle (no fighting, aiming or getting in while they are up); X again lowers them. Other scripts ask the client export IsHandsUp.on / offon
Fall overWhile its key is held on foot the player falls over and lies limp.on / offon
Sit on objectsChairs, benches and stools from the Seats tab get a Sit down prompt.on / offon
Carry playersFrom the radial menu a player carries the nearest player over the shoulder. Downed or cuffed players are picked up at once, anyone else is asked first.on / offon
TackleG while sprinting knocks down the player right in front.on / offon
Block corner peekingA player cannot shoot at what only the third person camera sees round a corner: firing stops while the gun barrel is behind cover.on / offon
Sprint indoorsPlayers can sprint inside buildings too, not only outside.on / offon
No automatic helmetGetting on a motorbike or into an aircraft does not put a helmet on by itself.on / offon
Hats stay onHats, glasses and helmets do not fall off when the player is hit or pushed.on / offon
No idle cameraThe camera does not start circling round a player who stands still, on foot or as a passenger.on / offon
AFK kickPlayers who do not move for this long are kicked (admins never). 0 turns it off. 0-600.min20

Combat

How fights and weapons feel.

SettingWhat it changesDefault
No combat stanceAfter a punch or a shot the player walks normally again at once instead of staying in GTA's hunched combat walk.on
No pistol whipWith a gun in hand the melee keys do nothing, so close up the player shoots instead of hitting with the gun.on
No blind peeking from coverA player in cover cannot lean out to look without aiming.on
No one shot headshotsA headshot on a player does the same damage as a body shot.off
No bunny hoppingA second jump within 5 seconds makes the player trip and fall.on
No GTA pickupsWeapons, ammo, armour, health and money that GTA drops (from dead NPCs, for example) cannot be picked up. Items come only from the inventory.on
No weapons from vehiclesGetting into a police car or another armed vehicle gives no weapon.on

Items

What the small items do when used.

SettingWhat it changesUnitDefault
Binoculars itemUsing binoculars opens a zoom camera.on / offon
Firework itemsFireworks are placed on the ground and go off after 5 seconds.on / offon
Notepad itemUsing the notepad writes a page that becomes a note item; using the note shows its text.on / offon
Diving gearUsing diving_gear puts an air tank and a mask on (or takes them off); while worn the player breathes underwater until the tank is empty. diving_fill refills the tank.on / offon
Air in a full tankSeconds a player breathes underwater on one full tank. Air is spent only underwater and kept per character. 10-3600. Shown with Diving gear on.s100
Putting on / taking offSeconds the animation takes. 1-60.s5
RefillingSeconds refilling the tank with a diving_fill item takes. 1-60.s5

World

GTA's own systems.

SettingWhat it changesDefault
No GTA policeNo wanted level and no AI police, ambulance or fire trucks.on
No GTA police and emergency vehiclesGTA spawns no police, ambulance, fire or army vehicles and no police, medic, guard or soldier NPCs anywhere. Vehicles and NPCs that scripts create are not affected.on
Areas without parked vehiclesAt police stations, hospitals, the prison and bases GTA parks no vehicles at all, so their car parks stay free for players. Up to 40 rows, each with a Name, Middle of the area and Size (metres from the middle in every direction, 10-1000 m). Shown while the switch above is on.Central Los Santos Medical Center, Mission Row Police Department, Pillbox Hill Medical Center, Paleto Bay Sheriff, Sandy Shores Sheriff, Vespucci helipad (100 m each), Altruist camp (150 m), Bolingbroke Penitentiary (250 m), Fort Zancudo (500 m)
No GTA planesNo planes take off from or park at the airports and the army base, and no jets fly over the map.on
No police radioGTA's police scanner voice and police sounds around the city are silent.on
Quiet city soundsMutes far away sirens, car alarms and the music GTA plays while flying.on
Hide GTA HUD partsHides GTA's cash, ammo count, area, street and vehicle names (the ai-hud shows its own).on

Population

How many GTA pedestrians and vehicles fill the streets. Fewer means better performance. Each 0-100 in steps of 5.

SettingWhat it changesUnitDefault
PedestriansWalking people, in percent of GTA's normal amount. 0 empties the streets.%80
Scenario peoplePeople sitting, working or standing at fixed places, in percent.%80
TrafficMoving AI vehicles, in percent.%80
Parked carsCars parked along the streets, in percent.%80
No garbage trucksGTA's garbage trucks that stop in the middle of the road do not drive around.on / offon

Tab: Teleports

Doors that take players between two points. One record per teleport (New teleport / Delete teleport). A prompt at both ends takes the player to the other end.

SettingWhat it changes
NameShown on the prompt (Go: Weazel News office).
First endOne end, with the heading the player faces on arrival.
Second endThe other end.
JobsOnly members of these jobs can use it. Leave jobs and gangs empty for everyone.
GangsMembers of these gangs can use it too.
Only on dutyJob members must be on duty in that job.

Tab: Elevators

Elevators with several floors: a prompt on every floor lists the others. One record per elevator (New elevator / Delete elevator).

SettingWhat it changes
NameThe elevator's name on the prompt.
FloorsAt least two, up to 20, top to bottom or in any order you like. Each row has a Floor name, a Floor point (the player arrives there facing its heading) and a Job (only that job's members may go to that floor; empty for everyone).

Tab: Moorings

Dock spots boats can be tied to with the boat rope. One record per mooring (New mooring / Delete mooring). 16 docks come ready. A boat floating within 12 m of the spot can be tied.

SettingWhat it changes
NameThe mooring's name.
Mooring spotStand at the edge of the dock where boats lie.

Tab: Seats

World objects players can sit on, and where on them they sit. One record per object model (New seat object / Delete seat object). Every object of this model in the world gets a Sit down prompt.

SettingWhat it changesDefault for new
ObjectThe chair, bench or stool model.
How to sitThe sitting pose: Chair, Armchair, Bench, Bar stool, Deck chair, Sun lounger, Club seat (watching), Low wall, Steps, Ledge (legs hanging), Tattoo chair, Lounging, Director's chair.Chair
Place straight on the seatFor stools and booths the player cannot walk into; otherwise they walk to the seat.off
Seats on the objectOne row per place to sit (up to 12), measured from the object's centre: Right, Forward, Up (each -10 to 10 m) and Facing; heading 180 faces the object's front. The nearest free seat is taken.

Tab: Discord

What players' Discord profiles show while they play on this server (Rich Presence).

Discord application: create an application at discord.com/developers (Applications > New Application). Its name is the title Discord shows above the lines, for example your server's name.

SettingWhat it changesDefault
Discord Rich PresenceShows your application's name, pictures, text lines and buttons on every player's Discord profile. Needs the application id. Off: players keep FiveM's own presence.off
Application idOn discord.com/developers open your application, General Information, and copy the Application ID (17 to 20 digits). It is public, not a secret.empty

Pictures: upload the pictures in your application under Rich Presence > Art Assets (at least 512 x 512 px), then type their names here. A new picture can take a few minutes to show up in Discord.

SettingWhat it changes
Large pictureThe name of an Art Asset of your application: the big square picture next to the text, usually your logo. Empty: no picture.
Large picture textShown when someone moves the mouse over the large picture.
Small pictureThe name of an Art Asset of your application: the small round picture on the corner of the large one. Empty: no small picture.
Small picture textShown when someone moves the mouse over the small picture.

Text lines: two lines under the application's name; Discord counts the time played next to them by itself. Both lines empty: FiveM's own text.

SettingWhat it changesDefault
First lineThe upper line, up to 128 characters. Updates by itself when a placeholder's value changes (the street at most every 15 seconds).{players}/{maxPlayers} players
Second lineThe lower line, up to 128 characters, with the same placeholders.Playing as {name}

Placeholders:

PlaceholderBecomes
{players}Players online
{maxPlayers}Server slots
{name}Character name
{id}Server id
{job}Job
{street}The street the player is on

Buttons: up to two buttons under the presence that open a link, for example your Discord invite or website. Other people see and click them; Discord does not show them to the player himself.

SettingWhat it changes
ButtonsTwo at most, shown in this order (Add button). Button text: up to 32 characters. Link: the page the button opens; it must start with https://.

Turning Rich Presence off gives FiveM's own presence back, but only if ai-smallresources set it. Another presence script running beside it is never overwritten.

Commands

None.

Keybinds

Players change these in GTA's key settings (FiveM section); the owner changes the defaults in the admin panel (Keybinds). A key does nothing while its feature is switched off.

Default keyWhat it does
KSeatbelt
YCruise control
Left CtrlCrouch
BPoint with your finger
XHands up
M (hold)Fall over (on foot)
GTackle while sprinting
XStand up from a seat
HNews camera view (while holding the camera)
BackspacePut the binoculars away
Mouse wheel up / downBinoculars: zoom in / zoom out

Other scripts

  • Emotes: when tgiann-emotes, codem-emotemenu, rpemotes or 0r-animmenu runs, its hands up and pointing win and ai-smallresources' gesture keys stay off. AI Core's gestures layer answers other scripts from whichever runs.
  • Seat belt: a HUD with its own seat belt (tgiann-lumihud, tgiann-hudv2, tgiann-modern-hud) or qbx_seatbelt is read first by AI Core's seat belt layer; turn the Seatbelt switch off when you use one of them.

Known limits

  • Hands up never starts over another script's animation (handcuffs, a surrender), and ends when that animation is replaced.
  • Areas without parked vehicles empty every GTA-parked car in the box, not only emergency ones: keep the sizes small.
  • Taking the diving_gear item away while it is worn does not take the gear off (as in Qbox). A restart or character switch does.
  • Fireworks cannot be placed from a vehicle.

On this page