File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -502,15 +502,11 @@ wndClothes = {
502
502
503
503
function addClothesCommand (cmd , type , model , texture )
504
504
type = type and tonumber (type )
505
-
506
- if string.len (type ) > 30 or string.len (model ) > 30 or string.len (texture ) > 30 then
507
- errMsg (" Invalid clothes input!" )
505
+ if (not type or string.len (type ) > 30 ) or (not model or string.len (model ) > 30 ) or (not texture or string.len (texture ) > 30 ) then
506
+ errMsg (" Invalid clothes input! Usage: /" .. cmd .. " [type] [model] [texture]" )
508
507
return
509
508
end
510
-
511
- if type and model and texture then
512
- server .addPedClothes (localPlayer , texture , model , type )
513
- end
509
+ server .addPedClothes (localPlayer , texture , model , type )
514
510
end
515
511
addCommandHandler (' addclothes' , addClothesCommand )
516
512
addCommandHandler (' ac' , addClothesCommand )
You can’t perform that action at this time.
0 commit comments