zsCamera
Configuration
ZERO_S = {}
ZERO_S.Framework = "ESX" -- ESX or QB-CORE
ZERO_S.getObject = "es_extended" -- (For ESX "es_extended") (For QB-Core "qb-core")
ZERO_S.WebHook = "https://discord.com/api/webhooks/................................."
ZERO_S.Inventory = "ox_inventory" -- supported ox_inventory soon others
ZERO_S.Items = {
Camera = "camera";
Photo = "photo"
}
ZERO_S.Notify = {
Icon = 'fas fa-camera';
IconColor = '#00ca94';
BgColor = '#1A202C';
Tittle = "ZeroScripts Camera";
Duration = 2500;
Text1 = "You can`t use camera in car!";
}
ZERO_S.ImageInfo = {
Time = "Time: ";
Location = "Location: ";
}
Items
['camera'] = {
label = 'Camera',
weight = 400,
degrade = 100,
stack = false,
close = true,
},
['photo'] = {
label = 'Photo',
weight = 10,
stack = false,
close = true,
client = {usetime = 1000,},
consume = 0
},
-------------------------------------------------------------------------------------
ox_inventory/modules/items/client.lua
Item("photo", function(data, slot)
TriggerEvent('zsCamera:client:see_photo', slot.metadata.photourl)
end)
Last updated