Sign in to follow this  
Hani2001

[Help]TXD checkbox

Recommended Posts

Hi Please i need function if checkbox checked txd will be remplaced if unchek Return Normal

Edited by Hani2001

Share this post


Link to post
"onClientGUIClick"
guiCheckBoxGetSelected
engineLoadTXD
engineImportTXD
engineLoadDFF
engineReplaceModel
engineRestoreModel

 

Share this post


Link to post
function replace()
  if guiCheckBoxGetSelected(...) then
    txd = engineLoadTXD("...")
    engineImportTXD(txd,...)
    dff = engineLoadDFF("...")
    engineReplaceModel(dff,...)
   else
    engineRestoreModel(...)
  end
end
addEventHandler("onClientGUIClick",root,replace)

 

Edited by ÆBKV

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.