Well idk where to like put the whole script.
Should i put it in vehicles.lua to DAYZ? or where? Where do i copy and paste it?
This :
function position()
local x,y,z = getElementPosition(localPlayer) -- this will get the position of the player in 'x, y, z' who types the /getpos command
outputChatBox(x..", "..y..", "..z+.5, 0, 255, 0) -- this will output the position to the chatbox
setClipboard(x..", "..y..", "..z+.5) -- this will copy the position to the player's clipboard
outputChatBox("Position has been copied to your clipboard.", 0, 255, 0) -- this will output another text to the chatbox
end -- end the function
addCommandHandler("getpos", position) -- attach a command to the function '/getpos'
should i paste it in dayz? vehicles. lua? or where?