Hello everyone, new to the business of learning to write by myself I wanted to know the right way to connect two chat commands in one code (else) for example)
And for example connecting “PRINT” after the command that is executed .
Probably when I understand the basics I will continue from here alone, thanks for any desire to help
code test
RegisterCommand('test1', function(source, args)
local ped = PlayerPedId(-1)
local currentPos1 = GetEntityCoords(ped)
print(currentPos1)
SetEntityCoords(ped, vector3(215.34, 7419.04, 19.07))
currentPos1 = GetEntityCoords(ped)
print('test1')
end)
RegisterCommand('test2', function(source, args)
local ped = PlayerPedId(-1)
local currentPos2 = GetEntityCoords(ped)
print(currentPos2)
SetEntityCoords(ped, vector3(226.08, 7451.0, 22.86))
currentPos2 = GetEntityCoords(ped)
print('test2')
end)