addEventHandler("onClientResourceStart", localPlayer, isInvisable) invisable = function() if guiCheckBoxGetSelected(invischk) == true then triggerServerEvent("noalpha", getRootElement(), localPlayer) else triggerServerEvent("noalpha1", getRootElement(), localPlayer) end end
addEventHandler("onClientGUIClick", invischk, invisable, false) carDamage = function() if isPedInVehicle(localPlayer) == true then if guiCheckBoxGetSelected(vehgodchk) == true then triggerServerEvent("cardamage", getRootElement(), localPlayer) else triggerServerEvent("nodamage", getRootElement(), localPlayer) end else guiCheckBoxSetSelected(vehgodchk, false) end end
addEventHandler("onClientGUIClick", vehgodchk, carDamage, false) inviscar = function() if isPedInVehicle(localPlayer) == true then if guiCheckBoxGetSelected(vehivischk) == true then triggerServerEvent("nocaralpha", getRootElement(), localPlayer) else triggerServerEvent("nocaralpha1", getRootElement(), localPlayer) end else guiCheckBoxSetSelected(vehivischk, false) end end
addEventHandler("onClientGUIClick", vehivischk, inviscar, false) velo = function() local l_7_0 = guiCheckBoxGetSelected(velocidade) if l_7_0 then setGameSpeed(3) elseif not l_7_0 then setGameSpeed(1) end end
addEventHandler("onClientGUIClick", velocidade, velo, false) JetPack = function() if guiCheckBoxGetSelected(jetpack) == true then triggerServerEvent("jetpack", getRootElement(), localPlayer) else triggerServerEvent("jetpack1", getRootElement(), localPlayer) end end
addEventHandler("onClientGUIClick", getRootElement(), closeabout, false) guiackapa = function() if guiGetVisible(MisterWindow) then guiSetVisible(MisterWindow, false) showCursor(false) else guiSetVisible(MisterWindow, true) showCursor(true) local l_13_0 = playSound("Arquivos/open.wav") setSoundVolume(l_13_0, 8.5) end end
Question
NOCIVO_D3D
I need to put the engines , tanks and tires on my nrg in DayZ MODE!
Already tried everything , help pls!
Painelmg_c.lua (client)
local l_0_0 = {}
l_0_0.gridlist = {}
l_0_0.window = {}
l_0_0.button = {}
l_0_0.label = {}
GUIEditor = l_0_0
l_0_0 = guiCreateWindow
l_0_0 = l_0_0(320, 198, 885, 392, "PAINEL V.I.P RELOAD [Z]", false)
PainelMus = l_0_0
l_0_0 = guiWindowSetSizable
l_0_0(PainelMus, false)
l_0_0 = guiSetProperty
l_0_0(PainelMus, "CaptionColour", "FF00FF90")
l_0_0 = guiSetVisible
l_0_0(PainelMus, false)
l_0_0 = guiCreateFont
l_0_0 = l_0_0("Arquivos/s3d.ttf",
myFont = l_0_0
l_0_0 = guiCreateButton
l_0_0 = l_0_0(650, 135, 79, 158, "CRIAR CARRO", false, PainelMus)
BotaoCar = l_0_0
l_0_0 = guiSetFont
l_0_0(BotaoCar, "default-bold-small")
l_0_0 = guiSetProperty
l_0_0(BotaoCar, "NormalTextColour", "FF00FF90")
l_0_0 = guiSetFont
l_0_0(BotaoCar, myFont)
l_0_0 = guiCreateButton
l_0_0 = l_0_0(790, 135, 79, 158, "DESTRUIR CARRO", false, PainelMus)
BotaoDCar = l_0_0
l_0_0 = guiSetFont
l_0_0(BotaoDCar, "default-bold-small")
l_0_0 = guiSetProperty
l_0_0(BotaoDCar, "NormalTextColour", "FF00FF90")
l_0_0 = guiSetFont
l_0_0(BotaoDCar, myFont)
l_0_0 = function()
local l_1_0 = getLocalPlayer()
local l_1_1, l_1_2, l_1_3 = getElementPosition(l_1_0)
local l_1_4 = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1)
if l_1_4 then
triggerServerEvent("onSpawnVehMustag", localPlayer, tonumber(l_1_4))
end
end
createveh = l_0_0
l_0_0 = addEventHandler
l_0_0("onClientGUIClick", BotaoCar, createveh, false)
l_0_0 = function()
triggerServerEvent("offSpawnVeh", localPlayer, destoyveh)
end
destoyveh = l_0_0
l_0_0 = addEventHandler
l_0_0("onClientGUIClick", BotaoDCar, destoyveh, false)
l_0_0 = GUIEditor
l_0_0 = l_0_0.gridlist
l_0_0[1] = guiCreateGridList(650, 45, 244, 63, false, PainelMus)
l_0_0 = guiGridListAddColumn
l_0_0(GUIEditor.gridlist[1], "ID", 0.2)
l_0_0 = guiGridListAddColumn
l_0_0(GUIEditor.gridlist[1], "NAME", 0.7)
l_0_0 = 1
for i = l_0_0, 1 do
guiGridListAddRow(GUIEditor.gridlist[1])
end
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "522", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 0, 252, 154, 255, 0, 255, false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "MOTO V.I.P", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 0, 24, 255, 0, 0, 255, false, false)
BotaoSkin = guiCreateButton(432, 59, 178, 41, "SKIN", false, PainelMus)
guiSetFont(BotaoSkin, "default-bold-small")
guiSetProperty(BotaoSkin, "NormalTextColour", "FF00FF90")
guiSetFont(BotaoSkin, myFont)
BotaoVeC = guiCreateButton(432, 135, 178, 41, "VIDA & COLETE", false, PainelMus)
guiSetFont(BotaoVeC, "default-bold-small")
guiSetProperty(BotaoVeC, "NormalTextColour", "FF00FF90")
guiSetFont(BotaoVeC, myFont)
BotaoArmas = guiCreateButton(432, 213, 178, 41, "ARMAS", false, PainelMus)
guiSetFont(BotaoArmas, "default-bold-small")
guiSetProperty(BotaoArmas, "NormalTextColour", "FF00FF90")
guiSetFont(BotaoArmas, myFont)
label2 = guiCreateLabel(200, 345, 180, 25, "Editado por Dig | Feito por [b]lack", false, PainelMus)
guiLabelSetColor(label2, 17, 254, 0)
guiSetFont(label2, myFont)
BotaoSkill = guiCreateButton(432, 285, 178, 41, "Habilidades", false, PainelMus)
guiSetFont(BotaoSkill, "default-bold-small")
guiSetProperty(BotaoSkill, "NormalTextColour", "FF00FF90")
guiSetFont(BotaoSkill, myFont)
myFont = guiCreateFont("Arquivos/s3d.ttf", 9)
Label01 = guiCreateLabel(136, 37, 141, 31, "JOGADOR", false, PainelMus)
guiLabelSetColor(Label01, 252, 213, 0)
guiSetFont(Label01, "default-bold-small")
Label02 = guiCreateLabel(136, 220, 141, 31, "VEICULO", false, PainelMus)
guiLabelSetColor(Label02, 252, 213, 0)
guiSetFont(Label02, "default-bold-small")
Label03 = guiCreateLabel(58, 92, 104, 33, " JETPACK", false, PainelMus)
guiLabelSetColor(Label03, 252, 77, 0)
guiSetFont(Label03, "default-bold-small")
Label04 = guiCreateLabel(190, 93, 35, 15, "Ativar", false, PainelMus)
guiLabelSetColor(Label04, 0, 255, 0)
guiSetFont(Label04, "default-bold-small")
Label05 = guiCreateLabel(227, 93, 10, 15, "/", false, PainelMus)
guiLabelSetColor(Label05, 255, 255, 255)
guiSetFont(Label05, "default-bold-small")
Label06 = guiCreateLabel(240, 93, 75, 15, "Desativar", false, PainelMus)
guiLabelSetColor(Label06, 255, 0, 0)
guiSetFont(Label06, "default-bold-small")
jetpack = guiCreateCheckBox(170, 88, 17, 25, "", false, false, PainelMus)
Label15 = guiCreateLabel(31, 250, 128, 31, " INDESTRUTIVEL", false, PainelMus)
guiLabelSetColor(Label15, 252, 77, 0)
guiSetFont(Label15, "default-bold-small")
Label16 = guiCreateLabel(190, 250, 35, 15, "Ativar", false, PainelMus)
guiLabelSetColor(Label16, 0, 255, 0)
guiSetFont(Label16, "default-bold-small")
Label17 = guiCreateLabel(227, 250, 10, 15, "/", false, PainelMus)
guiLabelSetColor(Label17, 255, 255, 255)
guiSetFont(Label17, "default-bold-small")
Label18 = guiCreateLabel(240, 250, 75, 15, "Desativar", false, PainelMus)
guiLabelSetColor(Label18, 255, 0, 0)
guiSetFont(Label18, "default-bold-small")
vehgodchk = guiCreateCheckBox(170, 245, 27, 25, "", false, false, PainelMus)
Label19 = guiCreateLabel(31, 292, 128, 31, " INVISIBILIDADE", false, PainelMus)
guiLabelSetColor(Label19, 252, 77, 0)
guiSetFont(Label19, "default-bold-small")
Label20 = guiCreateLabel(190, 290, 35, 15, "Ativar", false, PainelMus)
guiLabelSetColor(Label20, 0, 255, 0)
guiSetFont(Label20, "default-bold-small")
Label21 = guiCreateLabel(227, 290, 10, 15, "/", false, PainelMus)
guiLabelSetColor(Label21, 255, 255, 255)
guiSetFont(Label21, "default-bold-small")
Label22 = guiCreateLabel(240, 290, 75, 15, "Desativar", false, PainelMus)
guiLabelSetColor(Label22, 255, 0, 0)
guiSetFont(Label22, "default-bold-small")
vehivischk = guiCreateCheckBox(170, 285, 37, 25, "", false, false, PainelMus)
guiLabelSetColor(Label50, 255, 255, 255)
isInvisable = function()
if getElementAlpha(localPlayer) == 0 then
guiCheckBoxSetSelected(invischk, true)
else
guiCheckBoxSetSelected(invischk, false)
end
end
addEventHandler("onClientResourceStart", localPlayer, isInvisable)
invisable = function()
if guiCheckBoxGetSelected(invischk) == true then
triggerServerEvent("noalpha", getRootElement(), localPlayer)
else
triggerServerEvent("noalpha1", getRootElement(), localPlayer)
end
end
addEventHandler("onClientGUIClick", invischk, invisable, false)
carDamage = function()
if isPedInVehicle(localPlayer) == true then
if guiCheckBoxGetSelected(vehgodchk) == true then
triggerServerEvent("cardamage", getRootElement(), localPlayer)
else
triggerServerEvent("nodamage", getRootElement(), localPlayer)
end
else
guiCheckBoxSetSelected(vehgodchk, false)
end
end
addEventHandler("onClientGUIClick", vehgodchk, carDamage, false)
inviscar = function()
if isPedInVehicle(localPlayer) == true then
if guiCheckBoxGetSelected(vehivischk) == true then
triggerServerEvent("nocaralpha", getRootElement(), localPlayer)
else
triggerServerEvent("nocaralpha1", getRootElement(), localPlayer)
end
else
guiCheckBoxSetSelected(vehivischk, false)
end
end
addEventHandler("onClientGUIClick", vehivischk, inviscar, false)
velo = function()
local l_7_0 = guiCheckBoxGetSelected(velocidade)
if l_7_0 then
setGameSpeed(3)
elseif not l_7_0 then
setGameSpeed(1)
end
end
addEventHandler("onClientGUIClick", velocidade, velo, false)
JetPack = function()
if guiCheckBoxGetSelected(jetpack) == true then
triggerServerEvent("jetpack", getRootElement(), localPlayer)
else
triggerServerEvent("jetpack1", getRootElement(), localPlayer)
end
end
addEventHandler("onClientGUIClick", jetpack, JetPack, false)
replaceModel = function()
txd = engineLoadTXD("Skin/429.txd")
engineImportTXD(txd, 506)
dff = engineLoadDFF("Skin/429.dff", 506)
engineReplaceModel(dff, 506)
end
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel)
show_gui = function()
if guiGetVisible(MisterWindow) == false then
guiSetVisible(invischk, true)
guiSetVisible(vehgodchk, true)
guiSetVisible(vehivischk, true)
guiSetVisible(velocidade, true)
guiSetVisible(jetpack, true)
end
end
addEvent("ShowGUI", true)
addEventHandler("ShowGUI", getRootElement(), show_gui)
openabout = function()
guiSetVisible(invischk, false)
guiSetVisible(vehgodchk, false)
guiSetVisible(vehivischk, false)
guiSetVisible(velocidade, false)
guiSetVisible(jetpack, false)
end
addEventHandler("onClientGUIClick", getRootElement(), openabout, false)
closeabout = function()
guiSetVisible(invischk, true)
guiSetVisible(vehgodchk, true)
guiSetVisible(vehivischk, true)
guiSetVisible(velocidade, true)
guiSetVisible(jetpack, true)
end
addEventHandler("onClientGUIClick", getRootElement(), closeabout, false)
guiackapa = function()
if guiGetVisible(MisterWindow) then
guiSetVisible(MisterWindow, false)
showCursor(false)
else
guiSetVisible(MisterWindow, true)
showCursor(true)
local l_13_0 = playSound("Arquivos/open.wav")
setSoundVolume(l_13_0, 8.5)
end
end
addEvent("ShowGUI", true)
addEventHandler("ShowGUI", getRootElement(), guiackapa)
guiackapaPMST = function()
Link to comment
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now