Jump to content
View in the app

A better way to browse. Learn more.

SAES:RPG

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Author

Add a simple command handler to allow players to create their own weapon switching bindings to make Q/E and scrolling through the weapon list a thing of the past.


When I tried out playing as a police officer, I noticed that it's pretty painful to switch to a specific weapon unlike in other games where you can create your own keyboard bindings.


The little code snippet below makes it possible.


Lua implementation code


addCommandHandler("weaponslot",
function (_, slot)
slot = tonumber(slot)

if slot ~= nil and slot >= 0 and slot <= 12 then
setPedWeaponSlot(localPlayer, slot)
end
end
)

Player binding examples
These bindings would bind meele to 1, pistol to 2 and rifle to 3.


bind 1 weaponslot 1
bind 2 weaponslot 2
bind 3 weaponslot 5

You can look up the weapon slots here: setPedWeaponSlot


  • 1 year later...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.