Money printer to a ulx class! (request/help/question)

hey out there :slight_smile:

	if( v.premium == true and ply:IsPremium() == false ) then
		Notify(ply, 1, 4, "This is a premium only item!")
		return ""
	end

i need to add 2 more ulx classes: “allstar” and “allstarplus” how do i do :s im a bad lua coder!

i tried:

	if( v.premium == true and ply:IsPremium() and ply:IsAllstar() and ply:IsAllstarplus == false ) then
		Notify(ply, 1, 4, "This is a premium only item!")
		return ""
	end

but without luck!

ULX groups can be added through the xgui (the interface in-game) and Falco has added “donor” shipments to the latest SVN of darkrp, you could just use those.

This will not do what you want:
[lua]if( v.premium == true and ply:IsPremium() and ply:IsAllstar() and ply:IsAllstarplus == false ) then[/lua]

This might, if the IsAllstar and Allstarplus methods are actually valid:
[lua]if( v.premium == true and !(ply:IsPremium() or ply:IsAllstar() or ply:IsAllstarplus())) then[/lua]

why the last one is (allstarplus) have all that ())) to the last?

Because if you open a parentheses you have to close it as well



if( v.premium == true and !(ply:IsPremium( ) or ply:IsAllstar( ) or ply:IsAllstarplus( ) ) ) then
..1........................2.............3.3.................4.4.....................5.5.2.1.....


The numbers match their opening/closing parentheses.

oh

can you please add me at steam! i got a few questions? nma155

and thanks for help! i found it very helpfull!

dude it didnt work? what can i do?

What error is it producing?

it just fails… it still only premium class that can use printer…