Studios
Shot Makerhouse-3.jpg

Commands & Exports

SoonShot MakerStandalone
PAGE 06 OF 06  ·  TROUBLESHOOTING → COMMANDS & EXPORTSdocs.glitchstudios.dev
Browse docs

Commands#

Command What it does
/shotmaker Opens the studio. Pick categories, frame the camera and press Start. The top bar has CAPTURE, PHOTOS, HISTORY, MOD PHOTOS, CUTSCENES and the MALE / FEMALE switch.
/wardrobe The photo browser. Try items on and mark broken photos for a retake.
/shotmissing Shoots only what has no photo yet.
/shotcar <model> One vehicle by spawn name. On its own it opens the car menu studio (with glitch-admin).
/shotprop <model> One world object by model name.
/shotmods [all] [rims|norims] [model ...] Every mod part, extra and livery, and every rim. Missing photos only unless all; run it again to carry on.
/shottattoos Every tattoo, per zone.
/shotjoin Join the run another photographer is taking.
/shotforce Pull players into a run (or your next one). They need no permission of their own and may only upload inside the blocks they were given.
/shotretakelist A team run over the keys in retake-list.txt.
/shotskips [clear] Shows or clears the items the studio skips.

Every command needs its own command.<name> ace while AceRestricted is on. Refusals are logged in the server console.

Integration guide#

All client-side, all return a CDN URL string straight away.

exports['glitch-shotMaker']:getPhotoURL('male', 'component', 11, 5, 0)
exports['glitch-shotMaker']:getVehiclePhotoURL('adder')
exports['glitch-shotMaker']:getVehicleModPhotoURL('adder', 'spoiler', '1')
exports['glitch-shotMaker']:getVehicleModManifestURL('adder')
exports['glitch-shotMaker']:getWheelPhotoURL(0, 12)
exports['glitch-shotMaker']:getObjectPhotoURL('prop_bench_01a')
exports['glitch-shotMaker']:getShotsBaseURL()
exports['glitch-shotMaker']:getPhotoFormat()   -- 'webp'

getPhotoURL(gender, itemType, id, drawable, texture) takes 'male' or 'female', then 'component', 'prop' or 'overlay'. Leave texture out for the base photo.

For other resources there are also CaptureVehicleList(models, onResult, onDone, opts), GetVehicleSpawnOptions(), CaptureCutscenes(list) and StopCutscenes().

Client exports#

Export signature Implementation in your package
CaptureCutscenes(list) client/client.lua
CaptureVehicleList(models, onResult, onDone, opts) client/client.lua
GetVehicleSpawnOptions() client/client.lua
StopCutscenes() client/client.lua
getObjectPhotoURL(modelName) client/client.lua
getPhotoFormat() client/client.lua
getPhotoURL(gender, itemType, id, drawable, texture) client/client.lua
getShotsBaseURL() client/client.lua
getVehicleModManifestURL(modelName) client/client.lua
getVehicleModPhotoURL(modelName, set, item) client/client.lua
getVehiclePhotoURL(modelName) client/client.lua
getWheelPhotoURL(wheelType, index) client/client.lua