Jump to content

Execute Command ! need Your HELP!


Annas

Recommended Posts

why this script isn't work ??

i use this HUD , and it have (./removehud to hide the HUD + ./addhud to add the HUD , i have a simple panel for settings like CIT2 i wanna if newHud => Yes then exectute Command handler (addhud) and if it's =>No , then exectute Command handler (removehud) .

i wish you undertand my idea.

THIS is the Settings panel where i wanna if YES then show / if no then Hide THE HUD.

SERVER SIDE:

function replace (player) 
     if not isElement(player) then return end 
     local tagStatus = exports.CSTsettings:getSetting("newhud") 
     if (tagStatus == "Yes") then 
     executeCommandHandler ( "addhud", player ) 
     else 
     if (tagStatus == "No") then 
     executeCommandHandler ( "removehud", player ) 
     end 
end 
  

META

    "iAnnAs" version="1.0" type="script"/> 
    

Edited by Guest
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...