Jump to content

fightingstyle


Recommended Posts

Posted

Hey i would like to add fighting style in F1 i searched Some topics and websites but i didn't find help

i want to add fighting style in F1 which allow you to choose your fighting style , i click on it but nothing does help !

fighting.xml

type="style"> 
    

i added it into meta

[lua]"fighting.xml" type="client" /> 

[/lua]

fr_client

--------------------------- 
-- Fighting style window 
--------------------------- 
wndFighting = { 
    'wnd', 
    text = 'Set Fighting style', 
    width = 250, 
    x = -20, 
    y = 0.3, 
    controls = { 
        { 
            'lst', 
            id='fighting', 
            width=230, 
            height=290, 
            columns={ 
                {text='Fighting', attr='name'} 
            }, 
            rows={xml='fighting.xml', attrs={'name'}}, 
            expandlastlevel=false, 
            onitemdoubleclick=applyAnimation 
        }, 
        {'btn', id='Set', onclick=applyFightingstyle}, 
        {'btn', id='Close', closeswindow=true} 
    } 
} 
  
  
addCommandHandler('setstyle', 
    function(cmd, style) 
        style = style and tonumber(style) 
        if style then 
            server.setPedFightingStyle(g_Me, style) 
        end 
    end 
) 
  

fr_server

setPedFightingStyle = { option = 'setstyle', descr = 'Setting fighting style' }, 

My nick in MTA is Spider

Posted

At itemdoublecluck you have to use setPedFightingStyle

And the brackets are leaf.id

Then it should work

And the snail starts to sing

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