//_Dragon Posted December 11, 2015 Author Share 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 ?? Link to comment
Captain Cody Posted December 11, 2015 Share Posted December 11, 2015 Well you have to link the client side event to the gui... Link to comment
//_Dragon Posted December 11, 2015 Author Share 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 ] Link to comment
Captain Cody Posted December 11, 2015 Share Posted December 11, 2015 What's the code for the gui.. Link to comment
//_Dragon Posted December 11, 2015 Author Share Posted December 11, 2015 What's the code for the gui.. gui of what ? Link to comment
Captain Cody Posted December 11, 2015 Share Posted December 11, 2015 For the danm gui panel... Link to comment
DarkByte Posted December 12, 2015 Share Posted December 12, 2015 If im not pro why then i made this script working perfect?? Link to comment
DarkByte Posted December 12, 2015 Share Posted December 12, 2015 https://www.youtube.com/watch?v=Kc7jhY53-Lw Link to comment
//_Dragon Posted December 12, 2015 Author Share Posted December 12, 2015 https://www.youtube.com/watch?v=Kc7jhY53-Lw Help me :3 !! Link to comment
//_Dragon Posted December 12, 2015 Author Share Posted December 12, 2015 Any one help me ????? Link to comment
//_Dragon Posted December 13, 2015 Author Share Posted December 13, 2015 ???? any help Link to comment
Captain Cody Posted December 13, 2015 Share 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. Link to comment
//_Dragon Posted December 14, 2015 Author Share 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 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