Files
wnsrc/gamemodes/darkrp/plugins/scannerplugin/sh_plugin.lua
lifestorm 6a58f406b1 Upload
2024-08-04 23:54:45 +03:00

46 lines
1.1 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
local PLUGIN = PLUGIN
PLUGIN.name = "Scanner Conversion"
PLUGIN.author = "Madeon | Chessnut"
PLUGIN.description = "A conversion of the NS Scanner plugin to IX."
ix.config.Add("pictureDelay", 15, "How often scanners can take pictures.", nil, {
category = PLUGIN.name,
data = {min = 0, max = 60}
})
ix.lang.AddTable("english", {
scannerPrepDownload = "Görsel indirme almaya hazırlanın..."
})
ix.lang.AddTable("spanish", {
scannerPrepDownload = "Prepárate para recibir una descarga visual..."
})
local playerMeta = FindMetaTable("Player")
function playerMeta:IsScanner()
return IsValid(self.ixScanner)
end
if (CLIENT) then
PLUGIN.PICTURE_WIDTH = 580
PLUGIN.PICTURE_HEIGHT = 420
end
ix.util.Include("sv_photos.lua")
ix.util.Include("cl_photos.lua")
ix.util.Include("sv_hooks.lua")
ix.util.Include("cl_hooks.lua")