Jump to content

tim171

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by tim171

  1. THANK YOU Castillo IT WORKED!!! :) But why the functions aren't working? I had to do them in the server side?
  2. This is the function function openGui() if not isElement(GUIEditor_Window[1]) then memberGui() end if not guiGetVisible(GUIEditor_Window[1]) then guiSetVisible ( GUIEditor_Window[1], true ) else guiSetVisible ( GUIEditor_Window[1], false ) end end` The Error: Memberpanel\client.lua:121: attempt to index global 'GUIEditor_Window' (a nil value)
  3. tim171

    Help... Panel

    like this? function button() if source == GUIEditor.button[17] then onClientGUIClick outputChatBox("Goodbye my friends. I have to go =)", 255,0,255) end end
  4. tim171

    Help... Panel

    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
  5. tim171

    Help... Panel

    It doesn't work again.
  6. tim171

    Help... Panel

    I have to write all in client side. ok thanks
  7. tim171

    Help... Panel

    Then I have to move all the serverside scripts to clientside ?
  8. tim171

    Help... Panel

    Solidsnake14 can you edit the serverside? what's the problem ?
  9. tim171

    Help... Panel

    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
×
×
  • Create New...