//_Dragon Posted December 11, 2015 Author Posted December 11, 2015 ---sevrer function hydra () local accountname = getAccountName (getPlayerAccount(client)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then local x, y, z = getElementPosition ( client ) hydra = createVehicle ( 520, x, y, z ) warpPedIntoVehicle (client, hydra ) else outputChatBox ( "You must be admin to use this", client, 255, 255, 255, true ) end end rootElement = getRootElement() addEventHandler( "onHydraClick", rootElement, hydra) addEvent("onHydraClick", true) ---client function hydra () triggerServerEvent ( "onHydraClick", resourceRoot ) outputConsole("A hydra has been spawned.") end ---meta <meta> <info name="staff's hydra" author="Oussez" version="1.1" type="script" /> <script src="server.lua" type="server"/> <script src="client.lua" type="client"/> </meta> when i'm not admin i can get hydra :3 i want only admin can get it is there any bugs ??
Captain Cody Posted December 11, 2015 Posted December 11, 2015 Well you have to link the client side event to the gui...
//_Dragon Posted December 11, 2015 Author Posted December 11, 2015 Well you have to link the client side event to the gui... i add this mod (hydra) in acl [ resource.hydra ]
//_Dragon Posted December 11, 2015 Author Posted December 11, 2015 What's the code for the gui.. gui of what ?
DarkByte Posted December 12, 2015 Posted December 12, 2015 If im not pro why then i made this script working perfect??
DarkByte Posted December 12, 2015 Posted December 12, 2015 https://www.youtube.com/watch?v=Kc7jhY53-Lw
//_Dragon Posted December 12, 2015 Author Posted December 12, 2015 https://www.youtube.com/watch?v=Kc7jhY53-Lw Help me :3 !!
Captain Cody Posted December 13, 2015 Posted December 13, 2015 I need the script for the Gui, to addon to it to allow this, it's hard to blindly addon to it, when you don't understand.
//_Dragon Posted December 14, 2015 Author Posted December 14, 2015 I need the script for the Gui, to addon to it to allow this, it's hard to blindly addon to it, when you don't understand. Ok but idk how i can found the gui
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