Jump to content

Freeroam admin, what do I wrong?


Recommended Posts

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!

Link to comment
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...

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