Jump to content

Freeroam . Как называется кнопка?


Recommended Posts

В общем,как обозначить кнопку от окна фрироама?

Также не понимаю,какой элемент указывать у триггера?

wndMain = { 
    'wnd', 
    text = 'Freeroam панель', 
    x = 10, 
    y = 190, 
    width = 270, 
    controls = { 
        {'lbl', text='Текущий персонаж'}, 
        {'br'}, 
  
        {'btn', id='skin', text='скины', width=80, window=wndSkin}, 
  
        {'btn', id='weapon', text='оружие', width=80, window=wndWeapon}, 
        {'btn', id='clothes', text='одежда', width=80, window=wndClothes}, 
  
        {'btn', id='warp', text='телепорт', width=80, window=wndWarp}, 
  
        {'br'}, 
  
        {'chk', id='falloff', text='падение с байка', width=120, onclick=toggleFallOffBike}, 
        {'br'}, 
        {'lbl', text='Позиция:', width=80}, 
        {'lbl', id='xpos', text='x', width=40}, 
        {'lbl', id='ypos', text='y', width=40}, 
        {'lbl', id='zpos', text='z', width=40}, 
        {'btn', id='setpos', text='карта', width=120, window=wndSetPos}, 
  
        {'lbl', text='Текущий транспорт'}, 
        {'br'}, 
        {'lbl', text='Сейчас:', width=50}, 
        {'lbl', id='curvehicle', width=120}, 
        {'br'}, 
        {'btn', id='createvehicle', text='создать', width=120, window=wndCreateVehicle}, 
        {'btn', id='wip', text='V.I.P', width=120, window=wndCreateVehicleVIP}, -- Вот эту? 
  
        {'btn', id='upgrades', text='тюнинг', width=120, window=wndUpgrades}, 
        {'btn', id='color', text='цвет', width=120, onclick=openColorPicker}, 
        {'btn', id='paintjob', text='аэрография', width=120, window=wndPaintjob}, 
        {'br'}, 
        {'chk', id='lightson', text='Фары включить', width=120, onclick=forceLightsOn}, 
        {'chk', id='lightsoff', text='Фары выключить', width=120, onclick=forceLightsOff}, 
  
        {'br'}, 
    }, 
    oncreate = mainWndShow, 
    onclose = mainWndClose 
} 

Другая часть кода

  
--Client 
function vipcheck(player,source,client) 
permission = triggerServerEvent("vipcheck",client ) 
if permission == true then  
 guiSetEnabled (wip, true ) 
 else 
 guiSetEnabled (wip, false) 
end 
end 
bindKey('f1', 'down', vipcheck ) 

  
--Server 
function vipcheck ( playerSource) 
    if ( hasObjectPermissionTo ( playerSource, "function.kickPlayer", false ) ) then 
  permission = false 
       
        if ( hasObjectPermissionTo ( playerSource, "function.kickPlayer", true ) ) then 
            permission = true 
            
        end 
    end 
    end 
    addEvent("vipcheck",true) 
  

Debug:

f711a8a5fc84.png

Помогите,пожалуйста.

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