Garry's Mod Leaks

[Addon for ULX] Model_ULX

Submitted by thejeffadventure, , Thread ID: 73881

Thread Closed
07-02-2018, 12:28 AM
This post was last modified: 07-02-2018, 12:40 AM by thejeffadventure
Warned
#1
[Image: 3XN0xUe.png]


With this addon, you can change your skin to any of those present on the server in order to test it or to have fun.
Command:!Model models / alex.mdl simple

This is not Leak. Self-written addon.



Download:

Content locked
This content has been locked. Please login or register in order to unlock it.

RE: [Addon for ULX] Model_ULX

#2
First of all no ad links..
secondly, not only this is not "self written". But you didn't even make the good look neat..

This is his code:

Code:
function ulx.model( calling_ply, pmodel, target_plys )

for k,v in pairs( target_plys ) do

if (not v:Alive() ) then --  -   .

ULib.tsayError( calling_ply, "Player has "..v:Nick().." die.", true )

else

v:SetModel( pmodel ) --  ,  

end

end

ulx.fancyLogAdmin( calling_ply, "[ULX] #A change model #T to model #s", target_plys, pmodel )

end

local model = ulx.command( "TheDmitry's Creations", "ulx model", ulx.model, "!model" )

model:addParam{ type=ULib.cmds.StringArg, hint="Model" }

model:addParam{ type=ULib.cmds.PlayersArg }

model:defaultAccess( ULib.ACCESS_SUPERADMIN )

model:help( "Set the model." )


This is the official code from the CustomCommands 4.5 pack..
Code:
function ulx.model( calling_ply, target_plys, model )

for k,v in pairs( target_plys ) do

if ( not v:Alive() ) then

ULib.tsayError( calling_ply, v:Nick() .. " is dead", true )

else

v:SetModel( model )

end

end

ulx.fancyLogAdmin( calling_ply, "#A set the model for #T to #s", target_plys, model )

end
local model = ulx.command( "Custom", "ulx model", ulx.model, "!model" )
model:addParam{ type=ULib.cmds.PlayersArg }
model:addParam{ type=ULib.cmds.StringArg, hint="model" }
model:defaultAccess( ULib.ACCESS_ADMIN )
model:help( "Set a player's model." )

-rep

RE: [Addon for ULX] Model_ULX

OP
#3
Ou.Sry I dont know that this is CustomCommands 4.5

RE: [Addon for ULX] Model_ULX

#4
07-02-2018, 12:42 AM
thejeffadventure Wrote:
Ou.Sry I dont know that this is CustomCommands 4.5

Oh yeah were sure you didn't...
Want some quality content? Check out my youtube channel!



Users browsing this thread: 1 Guest(s)