Skip to content

Examples

Common things gamemodes and client scripts do, ready to copy. Each is complete for what it shows; combine them into your own gamemode.

Server

Example Shows
Spawns and welcome Spawn points, spawn protection, a welcome message, a car on spawn.
Admin commands Console commands, and an admin list.
Teams and scores Teams, skins, no friendly fire, kill scores sent to a HUD.
Shops and money Shop zones, buying over a channel, a Pay 'n' Spray.
A mission A two-player mission: a start marker, a waiting point, a timer, a ped to protect, a reward.
A shop menu A shop menu opened and run by the server, no client script.
Personal vehicles A car spawner, owners, locking, cleanup.
Rounds and timers A timed round with a countdown and a winner.
Saving players Money and position kept between visits, in a JSON file.
Wanted levels and police Crimes, cops, bounties.
Crashes and vehicle hits A no-crash zone, a demolition derby, hit-and-runs, bullet-proof cars.

Client

Example Shows
A score HUD A corner HUD the gamemode keeps up to date.
Notifications Toasts that queue and fade away.
Chat A chat page in the pause menu, with commands.
A shop page A pause menu page with a list, the server checking each purchase.
Questions and forms Message boxes, and a form document with inputs.
Map markers Markers from a data file, and an interior map.
Matching the branding Documents in the server's colours, with its logo.