Bablo ResourcesDocs

Server Exports

Both exports only accept calls from resources listed in shared/config/booking.lua.

Set Booking Appearance

Sends a player’s current outfit to the booking kit, so shoe and fiber references match what they wear. Call it from your clothing resource after its own outfit update. The resource must be listed in BookingConfig.AppearanceResources.

LUA
-- src: number - player server id
-- model: number|string - the player's ped model
-- components: table - clothing components by id (6 = shoes, 11 = jacket, 4 = trousers, 8 = undershirt)
-- return: bool - true if the appearance was stored
 
exports["bablo-evidence"]:SetBookingAppearance(src, model, components)

Create Clothing Fiber Trace

Leaves a clothing fiber from a player at a position, for example when your script handles a struggle or a vehicle seat. The resource must be listed in BookingConfig.ClothingTraceResources.

LUA
-- donor: number - player server id the fiber comes from
-- coords: vector3 - where the fiber is left
-- component: number - the garment component (11, 4 or 8)
-- return: table|nil, string? - the created trace, or nil and an error
 
exports["bablo-evidence"]:CreateClothingFiberTrace(donor, coords, component)