Door Title | Need some help here guyz!

I need some help to fix a door title code, I tryed alot but i got no idea how it works.

Here is an example what my server using to lock/unlock doors. I need some help to make a new one named:

rp_doortitle

and you need to own the door.

function ccLockDoor( ply, cmd, args )

local entity = ents.GetByIndex( tonumber( args[ 1 ] ) );

if( LEMON.IsDoor( entity ) ) then

	if( entity.owner == ply ) then
	
		entity:Fire( "lock", "", 0 );

    elseif( ply:IsInDoorGroup( entity ) ) then
	
	entity:Fire( "lock", "", 0 );
		
	else
	
		LEMON.SendChat( ply, "This is not your door!" );
		
	end
	
end

end
concommand.Add( “rp_lockdoor”, ccLockDoor );

and

function ccUnLockDoor( ply, cmd, args )

local entity = ents.GetByIndex( tonumber( args[ 1 ] ) );

if( LEMON.IsDoor( entity ) ) then

	if( entity.owner == ply ) then
	
		entity:Fire( "unlock", "", 0 );
		
    elseif( ply:IsInDoorGroup( entity ) ) then
	
	entity:Fire( "unlock", "", 0 );
	

	else
	
		LEMON.SendChat( ply, "This is not your door!" );
		
	end
	
end

end
concommand.Add( “rp_unlockdoor”, ccUnLockDoor );

[lua]
function ccLockDoor( ply, cmd, args )

local entity = ents.GetByIndex( tonumber( args[ 1 ] ) );

if( LEMON.IsDoor( entity ) ) then

if( entity.owner == ply ) then

entity:Fire( “lock”, “”, 0 );

elseif( ply:IsInDoorGroup( entity ) ) then

entity:Fire( “lock”, “”, 0 );

else

LEMON.SendChat( ply, “This is not your door!” );

end

end

end
concommand.Add( “rp_lockdoor”, ccLockDoor );

and

function ccUnLockDoor( ply, cmd, args )

local entity = ents.GetByIndex( tonumber( args[ 1 ] ) );

if( LEMON.IsDoor( entity ) ) then

if( entity.owner == ply ) then

entity:Fire( “unlock”, “”, 0 );

elseif( ply:IsInDoorGroup( entity ) ) then

entity:Fire( “unlock”, “”, 0 );

else

LEMON.SendChat( ply, “This is not your door!” );

end

end

end
concommand.Add( “rp_unlockdoor”, ccUnLockDoor );
[/lua]
Next time use lua tags and do you get any errors at all?

I don’t even see how that code should work… it sends no arguments at all!?:frown:

Wuut? I don’t need any help to the lock/unlock thingy, I want a Door Title Script. but i just sended the two codes so i can show you what im using for codes, e.g the owning thingy. Understand?

That’s a lock/unlock door function…

I know, and? I still need help to make a Door Title script…