I can't put a string with spaces in addcommandhandler.
I already tried with "work " .. "pilot" but it doesn't work
taxistaJ = false
pilotoJ = false
Taxista = "Ser " .. "taxista"
function TaxiInicio(player, commandName, Taxista, Piloto)
if (commandName == "ser")then
outputChatBox("Ser (taxista, piloto)", player)
end
if (commandName == "ser " .. "taxista")then
taxistaJ = true
pilotoJ = false
outputChatBox("Has renunciado a tu anterior trabajo y ahora trabajas como taxista",player)
end
if (commandName == "ser " .. "piloto")then
taxistaJ = false
pilotoJ = true
outputChatBox("Has renunciado a tu anterior trabajo y ahora trabajas como piloto")
end
end
addCommandHandler("ser", TaxiInicio)
addCommandHandler("ser " .. "taxista", TaxiInicio)