Player.AllowImmediateDecalPainting

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:AllowImmediateDecalPainting( )
Description:
Allow the player to spraypaint now rather than waiting the 30 or so seconds.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.AllowImmediateDecalPainting]Player.AllowImmediateDecalPainting [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionYou can allow everyone on your server to spray at will!
Used onNewerServer.png
Code
local function SprayTime(ply)
    ply:AllowImmediateDecalPainting() 
end
hook.Add("PlayerSpray","Spray4Free",SprayTime)
OutputPlayers can spray as much as they want.

Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox