Spyeedy Posted August 20 Share Posted August 20 Is it possible for the cleo script to require dependencies before running the rest of the script? So say a script requires AutoID3000, is it possible from within my cleo script, to detect if AutoID3000 is loaded? Or is this simply out of CLEO's capability? I'm using CLEO 4.4, if the version number is required. Link to comment Share on other sites More sharing options...
Jack Posted August 21 Share Posted August 21 const AutoID = 3000 end while true wait 0 if 0488: is_model_available AutoID // model exists? then if 0A01: is_this_model_a_car AutoID // model has a 4 wheel then break // exit this loop end end end 0247: request_model AutoID 038B: load_all_models_now while true wait 0 if 0248: has_model_loaded AutoID then break // exit this loop end end // the rest of the script 0A93: terminate_this_custom_script // or use a new loop bibidibabidibu 1 Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
HzanRsxa2959 Posted August 21 Share Posted August 21 @Jack I think that they were talking about this mod : Isn't that popular, so you probably didn't know about it. @Spyeedy You can check if AutoID3000 is installed using this method (requires any version of CLEO4): if 0AA2: [email protected] = load_dynamic_library "#AutoID3000.asi" then 0AA3: free_dynamic_library [email protected] //autoid3000 is installed end Link to comment Share on other sites More sharing options...
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