Respown
Gold Elite
You add the book model from the config, then you add the pages, you can either do it with the command or you can make the item usable from the server. I leave the example both in sc and at the bottom
client-side command
server-side command
Hidden link for visitors, to see
Log in or register now.
Hidden link for visitors, to see
Log in or register now.
client-side command
Code:
RegisterCommand('kitaptestpd', function()
TriggerEvent('edrp_books:OpenBook', "kitaplspd1")
end)
RegisterCommand('kitaptestillegal', function()
TriggerEvent('edrp_books:OpenBook', "kitapıllegal1")
end)
server-side command
Code:
QBCore.Functions.CreateUseableItem('book', function(source)
TriggerClientEvent('edrp_books:OpenBook', source, "kitaplspd1")
end)