nick1995 Posted May 29, 2012 Posted May 29, 2012 Hi, I want the freeroam resource only for the ACL group "Nick en Mitchel" , but what is wrong here: function() fadeCamera(true) setTimer(getPlayers, 1000, 1) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Nick en Mitchel" ) ) ) then bindKey('f1', 'down', toggleFRWindow) createWindow(wndMain) hideAllWindows() guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), doesPedHaveJetPack(g_Me)) guiCheckBoxSetSelected(getControl(wndMain, 'falloff'), canPedBeKnockedOffBike(g_Me)) setJetpackMaxHeight ( 9001 ) triggerServerEvent('onLoadedAtClient', g_ResRoot, g_Me) end Thanks for your help!
Kenix Posted May 29, 2012 Posted May 29, 2012 All wrong. You use server side functions in client side. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
nick1995 Posted May 29, 2012 Author Posted May 29, 2012 All wrong. You use server side functions in client side. Oke, i understand. I am learning LUA scripting, is there a possibilty to make it admin only? I thought it would work, but it does not work... if i look in the server file, i cant find the function to show or hide the window...
Castillo Posted May 29, 2012 Posted May 29, 2012 You can either make a script that when you login it'll set you a element data with setElementData. if you're on the group, e.g: "inACLGroup", and then use getElementData client side. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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