Jump to content

Help... Panel


tim171

Recommended Posts

It doesn't work.

Client:

GUIEditor = { 
    button = {}, 
    label = {}, 
    window = {}, 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(204, 113, 384, 374, " Member Panel", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF11FF00") 
  
        GUIEditor.label[1] = guiCreateLabel(171, 349, 40, 15, "by: Tim", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) 
        GUIEditor.button[1] = guiCreateButton(22, 70, 107, 27, "Repair", false, GUIEditor.window[1]) 
        GUIEditor.label[2] = guiCreateLabel(22, 27, 86, 30, "Vehicle:", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[2], "sa-header") 
        guiLabelSetColor(GUIEditor.label[2], 255, 228, 0) 
        GUIEditor.button[2] = guiCreateButton(139, 70, 107, 27, "Blow", false, GUIEditor.window[1]) 
        GUIEditor.button[3] = guiCreateButton(256, 70, 107, 27, "", false, GUIEditor.window[1]) 
        GUIEditor.button[4] = guiCreateButton(22, 107, 107, 27, "Flip", false, GUIEditor.window[1]) 
        GUIEditor.button[5] = guiCreateButton(256, 107, 107, 27, "Fly", false, GUIEditor.window[1]) 
        GUIEditor.button[6] = guiCreateButton(256, 70, 107, 27, "Destroy", false, GUIEditor.window[1]) 
        GUIEditor.button[7] = guiCreateButton(139, 107, 107, 27, "Water Drive", false, GUIEditor.window[1]) 
        GUIEditor.label[3] = guiCreateLabel(22, 149, 85, 32, "Player:", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[3], "sa-header") 
        guiLabelSetColor(GUIEditor.label[3], 255, 0, 0) 
        GUIEditor.button[8] = guiCreateButton(22, 196, 107, 27, "Health", false, GUIEditor.window[1]) 
        GUIEditor.button[9] = guiCreateButton(22, 233, 107, 27, "Armour", false, GUIEditor.window[1]) 
        GUIEditor.button[10] = guiCreateButton(139, 196, 107, 27, "Member Skin", false, GUIEditor.window[1]) 
        GUIEditor.button[11] = guiCreateButton(256, 196, 107, 27, "Parachute", false, GUIEditor.window[1]) 
        GUIEditor.button[12] = guiCreateButton(139, 233, 107, 27, "Invisible", false, GUIEditor.window[1]) 
        GUIEditor.button[13] = guiCreateButton(256, 233, 107, 27, "Dildo", false, GUIEditor.window[1]) 
        GUIEditor.label[4] = guiCreateLabel(22, 270, 84, 31, "Extras:", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[4], "sa-header") 
        guiLabelSetColor(GUIEditor.label[4], 0, 255, 221) 
        GUIEditor.button[16] = guiCreateButton(135, 311, 111, 15, "LogOut", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[16], "NormalTextColour", "FFFFEA00") 
        GUIEditor.button[17] = guiCreateButton(256, 311, 119, 31, "Say Bye to all BW players", false, GUIEditor.window[1]) 
        GUIEditor.button[18] = guiCreateButton(10, 308, 119, 31, "Invisible Car", false, GUIEditor.window[1])     
    end 
) 
  

Server:

--[[Repair Vehicle Button 1]]- 
  
function button() 
if source == GUIEditor.button[1] then 
vehicles = getElemetsByType ("vehicle") 
for vehicleKey, vehicleValue in ipairs(vehicles) do 
fixVehicle (Vehiclename) 
end end 
end 
  
--[[blow Vehicle Button 2]]- 
function button() 
if source == GUIEditor.button[2] then 
outputChatBox("You don't have permission to blow vehicles!", 255,255,0) 
end 
end 
  
--[[Flip Vehicle Button 4 (3) ]]---       __--__ 
function button() 
if source == GUIEditor.button[4] then 
end  
end 
  
--[[Flying Vehicle Button 5]]---       __--__ 
function button() 
if source == GUIEditor.button[5] then 
end 
end 
  
--[[Destroy Vehicle Button 6]]---       __--__ 
function button() 
if source == GUIEditor.button[6] then 
end  
end 
  
--[[Water Drive Button 7]]---       __--__ 
function button() 
if source == GUIEditor.button[7] then 
end 
end 
  
--[[Health (player) Button 8]]-- 
function button() 
if source == GUIEditor.button[8] then 
setPedOnFire ( getRootElement(), true ) 
outputChatBox("You don't have permission to heal yourself!", 0,255,0) 
end 
end 
  
--[[Armour (Player) Button 9]]-- 
function button() 
if source == GUIEditor.button[9] then 
setPedArmor ( player, 100 ) 
end  
end 
  
--[[Member skin Button 10]]--       __--__ 
function button() 
if source == GUIEditor.button[10] then 
end 
end 
  
--[[Give parachute Button 11]]-- 
function button() 
if source == GUIEditor.button[11] then 
giveWeapon ( source, 46, 1 ) 
end  
end 
  
--[[invisible (player) Button 12]]-- 
function button() 
if source == GUIEditor.button[12] then 
outputChatBox("Sorry You have to wait until you get staff rank to use that function!", 255,0,255) 
end 
end 
  
--[[Dildo Button 13]]-- 
function button() 
if source == GUIEditor.button[13] then 
giveWeapon ( source, 10, 1 ) 
end  
end 
  
--[[logout Button 16]]-- 
function button() 
if source == GUIEditor.button[16] then 
logOut ( player ) 
end 
end 
  
--[[/bye command Button 17]]-- 
function button() 
if source == GUIEditor.button[17] then 
end 
end 
  
--[[invisible Car button 18]]-- 
function button() 
if source == GUIEditor.button[18] then 
setElementAlpha ( getPedOccupiedVehicle ( source , 0 ) 
end 
end 
end 
  

Edited by Guest
Link to comment

I have't finished the functions with command yet. I don't know how to do them.

Client side:

GUIEditor = { 
    button = {}, 
    label = {}, 
    window = {}, 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(204, 113, 384, 374, "Badwolf Member Panel", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF11FF00") 
  
        GUIEditor.label[1] = guiCreateLabel(171, 349, 40, 15, "by: Tim", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) 
        GUIEditor.button[1] = guiCreateButton(22, 70, 107, 27, "Repair", false, GUIEditor.window[1]) 
        GUIEditor.label[2] = guiCreateLabel(22, 27, 86, 30, "Vehicle:", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[2], "sa-header") 
        guiLabelSetColor(GUIEditor.label[2], 255, 228, 0) 
        GUIEditor.button[2] = guiCreateButton(139, 70, 107, 27, "Blow", false, GUIEditor.window[1]) 
        GUIEditor.button[3] = guiCreateButton(256, 70, 107, 27, "", false, GUIEditor.window[1]) 
        GUIEditor.button[4] = guiCreateButton(22, 107, 107, 27, "Flip", false, GUIEditor.window[1]) 
        GUIEditor.button[5] = guiCreateButton(256, 107, 107, 27, "Fly", false, GUIEditor.window[1]) 
        GUIEditor.button[6] = guiCreateButton(256, 70, 107, 27, "Destroy", false, GUIEditor.window[1]) 
        GUIEditor.button[7] = guiCreateButton(139, 107, 107, 27, "Water Drive", false, GUIEditor.window[1]) 
        GUIEditor.label[3] = guiCreateLabel(22, 149, 85, 32, "Player:", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[3], "sa-header") 
        guiLabelSetColor(GUIEditor.label[3], 255, 0, 0) 
        GUIEditor.button[8] = guiCreateButton(22, 196, 107, 27, "Health", false, GUIEditor.window[1]) 
        GUIEditor.button[9] = guiCreateButton(22, 233, 107, 27, "Armour", false, GUIEditor.window[1]) 
        GUIEditor.button[10] = guiCreateButton(139, 196, 107, 27, "Member Skin", false, GUIEditor.window[1]) 
        GUIEditor.button[11] = guiCreateButton(256, 196, 107, 27, "Parachute", false, GUIEditor.window[1]) 
        GUIEditor.button[12] = guiCreateButton(139, 233, 107, 27, "Invisible", false, GUIEditor.window[1]) 
        GUIEditor.button[13] = guiCreateButton(256, 233, 107, 27, "Dildo", false, GUIEditor.window[1]) 
        GUIEditor.label[4] = guiCreateLabel(22, 270, 84, 31, "Extras:", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[4], "sa-header") 
        guiLabelSetColor(GUIEditor.label[4], 0, 255, 221) 
        GUIEditor.button[16] = guiCreateButton(135, 311, 111, 15, "LogOut", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[16], "NormalTextColour", "FFFFEA00") 
        GUIEditor.button[17] = guiCreateButton(256, 311, 119, 31, "Say Bye to all BW players", false, GUIEditor.window[1]) 
        GUIEditor.button[18] = guiCreateButton(10, 308, 119, 31, "Invisible Car", false, GUIEditor.window[1])     
    end 
) 
  
  
--[[Repair Vehicle Button 1]]- 
  
function button() 
if source == GUIEditor.button[1] then 
vehicles = getElemetsByType ("vehicle") 
for vehicleKey, vehicleValue in ipairs(vehicles) do 
fixVehicle (Vehiclename) 
end end 
end 
  
--[[blow Vehicle Button 2]]- 
function button() 
if source == GUIEditor.button[2] then 
outputChatBox("You don't have permission to blow vehicles!", 255,255,0) 
end 
end 
  
--[[Flip Vehicle Button 4 (3) ]]--- (the command /flip) 
function button() 
if source == GUIEditor.button[4] then 
end  
end 
  
--[[Flying Vehicle Button 5]]---  (the command /fly) 
function button() 
if source == GUIEditor.button[5] then 
end 
end 
  
--[[Destroy Vehicle Button 6]]--- (the command /sv none) 
function button() 
if source == GUIEditor.button[6] then 
end  
end 
  
--[[Water Drive Button 7]]--- (the command is /water) 
function button() 
if source == GUIEditor.button[7] then 
end 
end 
  
--[[Health (player) Button 8]]-- 
function button() 
if source == GUIEditor.button[8] then 
setPedOnFire ( getRootElement(), true ) 
outputChatBox("You don't have permission to heal yourself!", 0,255,0) 
end 
end 
  
--[[Armour (Player) Button 9]]-- 
function button() 
if source == GUIEditor.button[9] then 
setPedArmor ( player, 100 ) 
end  
end 
  
--[[Member skin Button 10]]-- (the skin is 29 
function button() 
if source == GUIEditor.button[10] then 
end 
end 
  
--[[Give parachute Button 11]]-- 
function button() 
if source == GUIEditor.button[11] then 
giveWeapon ( source, 46, 1 ) 
end  
end 
  
--[[invisible (player) Button 12]]-- 
function button() 
if source == GUIEditor.button[12] then 
outputChatBox("Sorry You have to wait until you get staff rank to use that function!", 255,0,255) 
end 
end 
  
--[[Dildo Button 13]]-- 
function button() 
if source == GUIEditor.button[13] then 
giveWeapon ( source, 10, 1 ) 
end  
end 
  
--[[logout Button 16]]-- 
function button() 
if source == GUIEditor.button[16] then 
logOut ( player ) 
end 
end 
  
--[[/bye command Button 17]]-- 
function button() 
if source == GUIEditor.button[17] then 
outputChatBox("Goodbye my friends. I have to go =)", 255,0,255) 
end 
end 
  
--[[invisible Car button 18]]-- 
function button() 
if source == GUIEditor.button[18] then 
setElementAlpha ( getPedOccupiedVehicle ( source , 0 ) 
end 
end 
end 

Link to comment

Reconsider posting in the scripting forum for any professional help if your going to copy code and have a terrible way of giving it a title. I don't know what help ... panel is. It sure isn't a help panel.

Work on Indenting your code as well. Nobody wants to read a mess.

You may even need to give Lua In General another shot at learning.

Link to comment
Reconsider posting in the scripting forum for any professional help if your going to copy code and have a terrible way of giving it a title. I don't know what help ... panel is. It sure isn't a help panel.

By title "help... Panel" I think he meant that he needs help with a Panel

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...