addEvent('get_P_R', true) addEventHandler('get_P_R', root, function(type) if (type == 'position') then local pos = Vector3(getElementPosition(getPedOccupiedVehicle(localPlayer) or localPlayer)) setClipboard(string.format('%.3f', pos.x)..', '..string.format('%.3f', pos.y)..', '..string.format('%.3f', pos.z)) elseif (type == 'rotation') then local rot = Vector3(getElementRotation(getPedOccupiedVehicle(localPlayer) or localPlayer)) setClipboard(math.floor(rot.z)) end end)