mirror of
https://github.com/kac5a/k5_documents.git
synced 2026-07-31 09:48:43 -04:00
add command disable config
This commit is contained in:
@@ -118,7 +118,7 @@ RegisterNUICallback('hideDocument', function(_, cb)
|
||||
cb({})
|
||||
end)
|
||||
|
||||
if CurrentFramework then
|
||||
if CurrentFramework and Config.Command then
|
||||
RegisterCommand(Config.Command, function()
|
||||
toggleNuiFrame(true, true)
|
||||
end)
|
||||
@@ -252,7 +252,7 @@ end)
|
||||
|
||||
RegisterNetEvent("k5_documents:useItem")
|
||||
AddEventHandler("k5_documents:useItem", function()
|
||||
ExecuteCommand(Config.Command)
|
||||
toggleNuiFrame(true, true)
|
||||
end)
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Config = {}
|
||||
|
||||
Config.Command = "documents"
|
||||
Config.Command = "documents" -- If nil, the command won't work
|
||||
|
||||
Config.DocumentItemName = nil -- The name of the item you want to open the documents. If nil, no item will be registered
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ fx_version "cerulean"
|
||||
|
||||
description "A better document management script"
|
||||
author "K5 Scripts"
|
||||
version '1.2.1'
|
||||
update "Added usable item config"
|
||||
version '1.2.2'
|
||||
update "Added config to disable command"
|
||||
repository 'https://github.com/kac5a/k5_documents'
|
||||
|
||||
lua54 'yes'
|
||||
|
||||
Reference in New Issue
Block a user