ZeyadGTX Posted July 4, 2014 Share Posted July 4, 2014 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' }, Link to comment
yoya99 Posted July 5, 2014 Share Posted July 5, 2014 At itemdoublecluck you have to use setPedFightingStyle And the brackets are leaf.id Then it should work Link to comment
yoya99 Posted July 5, 2014 Share Posted July 5, 2014 ahh i tried out..at me it doesnt work too.. and it doesnt creates a button.. Link to comment
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