πΆβπ«οΈ Customize
Here you can know about what you can customize or change
Logsβ
caution
If you using a convars, do not show any sensitive information to the client.
set: server only, setr: for both server and client
You can enable logs by setting this convar on your server.cfg
set lazy-motel:logs "your webhook url"
Phone Mailβ
function SendPhoneMail(sender, subject, message)
TriggerServerEvent('qb-phone:server:sendNewMail', {
sender = sender,
subject = subject,
message = message
})
end
Notificationβ
- text:
string
- type:
"default" | "error" | "success"
function Notification(text, type)
if display then
TriggerEvent('jl-motel:notifyUI', text, type)
else
lib.notify({
description = text,
type = type
})
end
end
Outfitβ
- id:
string
function OpenClothing(id)
TriggerEvent('qb-clothing:client:openOutfitMenu')
end
Open Inventory / Stashβ
- id:
string
function OpenInventory(id)
if GetResourceState('ox_inventory') == "started" then
exports['ox_inventory']:openInventory('stash', id)
else
TriggerServerEvent("inventory:server:OpenInventory", "stash", id, Config.Stash)
TriggerEvent("inventory:client:SetCurrentStash", id)
end
end
Drawtextβ
Showing the drawtext:
function ShowDrawtext(text)
lib.showTextUI(text, {
position = "left-center",
})
end
Hiding the drawtext
function HideDrawtext()
lib.hideTextUI()
end
Minigameβ
This minigame will show when you start raiding motel room
function MiniGame()
local success = lib.skillCheck('medium')
return success
end
Blipβ
function CreateBlip(coords, name, sprite, colour)
sprite = sprite or 475
colour = colour or 5
local blip = AddBlipForCoord(coords)
SetBlipSprite(blip, sprite)
SetBlipScale(blip, 0.6)
SetBlipColour(blip, colour)
SetBlipDisplay(blip, 4)
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(name)
EndTextCommandSetBlipName(blip)
return blip
end