Posts
305
Respect
71Add +1
Forum Rank
Perk Hacker
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!boxUser = undefined;
BoxBoozeTrigger = GetEnt( "BoxBoozeTrig", "targetname" );
BoxBoozeTrigger waittill( "trigger", boxUser );
while( boxUser hasPerk( "specialty_gpsjammer" ) )
{
cost = 700;
self set_hint_string( self, "default_treasure_chest_" + 700 );
self setCursorHint( "HINT_NOICON" );
}



![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
boxUser = undefined;
BoxBoozeTrigger = GetEnt( "BoxBoozeTrig", "targetname" );
BoxBoozeTrigger waittill( "trigger", boxUser );
cost = 950; // also put it outside the loop / if statement
while( boxUser hasPerk( "specialty_gpsjammer" ) ) // If this is not true, cost wont be intialised
{
cost = 700;
self set_hint_string( self, "default_treasure_chest_" + 700 );
self setCursorHint( "HINT_NOICON" );
wait 0.1; // Always put a wait in a while-loop, or the game will break the loop on launch ('potential infinite loop - killing thread' error )
}