hi im making this parking script thing where you buy a space for the day and you can park your car there, and it doesnt allow anyone else to do so. I got a problem though, whenever I say /space 1, it is supposed to say Owner: player.account, but it doesnt. Also I think the script is supposed to be serverside, but whenever I make it serverside, anyone can go into the space and its not blockable so i gotta make it clientside. but the problem with it being clientside is that only I can see Owner

layer.account;
heres the script:
PHP Code:
function onPlayerChats()
{
if (player.chat == "/space 1")
{
if (clientr.item.Money>1000)
{
player.account=this.owner
clientr.item.Money-=1000;
player.addMsg2("You have rented space 1 for the day!");
message Owner: player.account SPC!;
dontblock;
}
else
player.addMsg2("You do not have enough money to rent a space!");
}
}