Liberty Unleashed

Scripting => Scripting Discussion => Topic started by: Juppi on October 25, 2010, 07:38:42 pm

Title: Known scripting issues
Post by: Juppi on October 25, 2010, 07:38:42 pm
A list of currently known scripting issues can be found from the wiki (http://liberty-unleashed.co.uk/LUWiki/Squirrel/Scripting_Issues). If you're having problems getting something to work check the list if it's a known and not yet fixed issue.

If you do find a scripting related issue you can use Mantis (http://mantis.liberty-unleashed.co.uk/) to report the bug or you can edit the known issues page on the wiki. Alternatively you can post the bug here. Before you do either check that the bug has not yet been reported by someone else.
Title: Re: Known scripting issues
Post by: _GHT_MarK445 on October 29, 2010, 08:48:03 pm
And what is the program for scripting?
Title: Re: Known scripting issues
Post by: Thijn on October 29, 2010, 09:31:09 pm
Notepad?
Or something like Notepad++ which has syntax highlighting.
Squirrel doesn't need any other program.
Title: Re: Known scripting issues
Post by: _GHT_MarK445 on October 29, 2010, 09:39:30 pm
Oh so wrong? or is it difficult
Title: Re: Known scripting issues
Post by: GTASAnek on September 10, 2011, 01:38:06 pm
What value for the command SetHUDItemEnabled?
Title: Re: Known scripting issues
Post by: Thijn on September 10, 2011, 01:43:30 pm
   SetHUDItemEnabled( HUD_ARMOUR, false );
   SetHUDItemEnabled( HUD_CLOCK, false );
   SetHUDItemEnabled( HUD_HEALTH, false );
   SetHUDItemEnabled( HUD_MONEY, false );
   SetHUDItemEnabled( HUD_WANTED, false );
   SetHUDItemEnabled( HUD_WEAPON, false );
   SetHUDItemEnabled( HUD_WEAPON, false );
   SetHUDItemEnabled( HUD_RADAR, false );

and true, but those are all the options if im right.
False removes the Item, True enables them back.
Title: Re: Known scripting issues
Post by: GTASAnek on September 10, 2011, 01:46:55 pm
Thanks
Title: Re: Known scripting issues
Post by: SugarD on September 10, 2011, 10:27:19 pm
   SetHUDItemEnabled( HUD_ARMOUR, false );
   SetHUDItemEnabled( HUD_CLOCK, false );
   SetHUDItemEnabled( HUD_HEALTH, false );
   SetHUDItemEnabled( HUD_MONEY, false );
   SetHUDItemEnabled( HUD_WANTED, false );
   SetHUDItemEnabled( HUD_WEAPON, false );
   SetHUDItemEnabled( HUD_WEAPON, false );
   SetHUDItemEnabled( HUD_RADAR, false );

and true, but those are all the options if im right.
False removes the Item, True enables them back.
You accidentally listed "SetHUDItemEnabled( HUD_WEAPON, false );" twice. :)
Title: Re: Known scripting issues
Post by: GTASAnek on September 11, 2011, 03:00:33 pm
And you can use this command to return the names of areas and cars, and generally can it?
How to remove the sight?
Title: Re: Known scripting issues
Post by: GTASAnek on September 13, 2011, 01:18:27 pm
The people, help me, can I return the names of areas and cars?
Can I remove the sight?
Title: Re: Known scripting issues
Post by: Thijn on September 13, 2011, 07:07:07 pm
Names of areas? You mean GetDistrictName (http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Misc/GetDistrictName)?

And what do you mean with remove the sight?
Title: Re: Known scripting issues
Post by: GTASAnek on September 13, 2011, 08:26:39 pm
No, I want to be like in a single game display the names of areas

I mean, the sight of weapons
Title: Re: Known scripting issues
Post by: SugarD on September 13, 2011, 09:09:56 pm
I think he means having LU display the area you are driving in when you enter a different one, like single-player did.
You know, that medium-sized text in the bottom-right corner :)
Title: Re: Known scripting issues
Post by: Force on September 13, 2011, 10:04:16 pm
Yes you can enable this, surprised Thijn didn't know since he's a tester, but anyway:

Code: [Select]
/districtnames on

Type this into the chatbox to enable them. :)
Title: Re: Known scripting issues
Post by: VRocker on September 14, 2011, 01:26:21 am
Yes you can enable this, surprised Thijn didn't know since he's a tester, but anyway:

Code: [Select]
/districtnames on

Type this into the chatbox to enable them. :)

I'm embarrassed to say it... but i didn't know this either :P I forgot all about that gta3 displayed it in single player
Title: Re: Known scripting issues
Post by: Thijn on September 14, 2011, 04:43:38 pm
Even tho I didn't know it, I didn't understand that was the question. Im surprised you did :P
Title: Re: Known scripting issues
Post by: GTASAnek on September 14, 2011, 04:57:18 pm
Thank you all)
Is it possible to also enable the names of cars?
Title: Re: Known scripting issues
Post by: AdTec_224 on September 14, 2011, 06:27:07 pm
Code: [Select]
/vehiclenames on
Type this into the chatbox to enable them. :)
Title: Re: Known scripting issues
Post by: GTASAnek on September 14, 2011, 09:22:20 pm
Thank you. And no more commands that are not written anywhere?
Title: Re: Known scripting issues
Post by: Force on September 14, 2011, 11:44:16 pm
Open up the console, default key ` and type commands :)
Title: Re: Known scripting issues
Post by: Force on November 08, 2011, 12:39:15 am
Just updated the known scripting issues page with some issues with progress bars that I'm having. It seems the bug with the .Visible only seems to occur if you set the visibility inside the onScriptLoad function. If you set it's visiblity after that, it appears to be fine.